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 difference between topic and queue?
How jndi is related to jms?
How does spring jms listener work?
What is a topic string?
What is jms jndi?
What is Publish/Subscribe Messaging in JMS ?
What is the jms client?
Give an example of using point to point model in JMS?
How Does the JMS Work with the J2EE ?
What is jms in java with example?
Are foreign destinations handled within foreign jms messages?
How does jms listener work?