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 are the main component in JMS?

1 Answers  


Is rabbitmq a jms?

0 Answers  


What is the diffrence between Java Mail and JMS Queue?

1 Answers  


What are the components of a jms messaging application?

0 Answers  


For JMS-enabled application, what are the core JMS-related objects required?

0 Answers  






Describe the concept of message driven bean clustering.

0 Answers  


What is a jms listener?

0 Answers  


What is the number of messaging models available on jms?

0 Answers  


What is jms endpoint?

0 Answers  


How do the wls jms 6.1 server/destination message maximum and threshold values work?

0 Answers  


What is jms and mq?

0 Answers  


How does a sender application transport/send a message through jms?

0 Answers  


Categories