What is the use of StreamMessage?
Answer / munnu
StreamMessage carries a stream of Java primitive types as it's payload. It contains some conveient methods for reading the data stored in the payload. However StreamMessage prevents reading a long value as short, something that is allwed in case of BytesMessage. This is so because the StreamMessage also writes the type information alonwgith the value of the primitive type and enforces a set of strict conversion rules which actually prevents reading of one primitive type as another.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the important part of JMS applications?
Explain about publish model?
What type of messaging is provided by JMS?
What is the point-to-point model in jms?
What is wire level protocol?
What is the difference between Message producer and Message consumer?
What is Service Provider ?
What are the different elements present in JMS?
How jndi is related to jms?
What are jms topics and queues?
Explain about message listeners?
What is jms and how it works?