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 jms connection?
How to Send object as message in JMS?
What is a connection factory?
What are the components of JMS?
What is jms in java?
What is the difference between java mail and jms queue?
How you can deliver a java message to a non-java client?
How to handle non-transacted sessions with respect to jms?
Why do we use jms?
What is difference between queue and topic in jms?
What is the difference between jms and kafka?
What is JMS administered object?