Answer Posted / 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 |
Post New Answer View All Answers
Which messaging is generally used in cases where a message is published by a producer and consumed by multiple subscribers?
Why jms is used in java?
Detail about the features of publish model?
What is jms (java messaging service)?
What is the difference between the P2P (Peer to Peer) model and subscribe model?
How jndi is related to jms?
What is a remote jms provider?
Which jms standard interface defines the methods to create the different types of messages?
Name the messaging types supported by jms.
What is queue connection factory?
What is the use of message queues?
How to consume message from jms queue in soa 12c?
What are the functionalities of a jms provider?
What is the important part of JMS applications?
Why does jmssession.createtopic or jmssession.createqueue fail to create a destination in wls jms 6.1 (it worked in 5.1)?