What is the use of JMS BytesMessage?

What is the use of BytesMessage?

BytesMessage contains an array of primitive bytes in it's payload. When the datatypes of two applications are not compatible with other message types, they can send them using ByteMessage. JMS can be simply used as a transport medium with the payload being opaque to the JMS client.

However, it is important that the payload be read in the same order and type when it was created. Since there is no boundary line between the different data types stored, you can even read a long as short. This would result in erroneous data.
Use of StreamMessage
JMS StreamMessage - StreamMessage carries a stream of Java primitive types as it's payload. Unlike ByteMessage, there are restrictions..
Difference between Point to Point and Publish and Subscribe method
In point to point communication, the producers and consumers of the message are defined. The producers push the messages..
Concepts and capabilities of Web Logic Server
Concepts and capabilities of Web Logic Server - Web Logic server supports the services and infrastructure for JEE applications....
Post your comment