What is the use of StreamMessage?

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


Please Help Members By Posting Answers For Below Questions

Does kafka support jms?

454


How to Set message priority levels?

988


What is a distributed queue?

509


What is Point-to-Point Approach?

1224


What is hermes jms?

458






What is a message in software?

473


What is the publish-and-subscribe model in jms?

488


How does a message queue work?

461


What are the three parts of the message?

499


How to Allowe messages to expire ?

941


What is the functionality of a jms message producer?

447


What is use of jms?

466


Is jms a protocol?

471


Can we have more than one consumer for a jms queue?

434


What are the components of a jms messaging application?

427