What is the use of StreamMessage?



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

Post New Answer

More JMS Interview Questions

What is jms in java?

0 Answers  


Explain about message listeners?

0 Answers  


For sending messages through JMS, what encryption options are there?

0 Answers  


What are jms channels?

0 Answers  


What are the components of JMS?

0 Answers  






Are there c/c++ interfaces to wls jms?

0 Answers  


Are you aware of any major JMS products available in the market?

1 Answers  


What is the difference between the P2P (Peer to Peer) model and subscribe model?

0 Answers  


What is difference between JMS and Web Services?

0 Answers  


Mention different types of messages available in JMS API?

0 Answers  


What Is Messaging?

1 Answers  


What are all the features of JMS API in J2EE platform?

0 Answers  


Categories