What are the advantages of JMS?

What are the advantages of JMS?

- JMS is an acronym used for Java Messaging Service.

- The Java Message Service defines a intra-business messaging API, designed to be easily and efficiently supported by a wide range of enterprise messaging products.

The advantages of JMS are:

- Asynchronous messaging: Due to asynchronous messaging, all the pieces don't need to be up for the application to function as a whole.

- Storage: MOM stores the messages on behalf of the receiver when it is down and then sends them once it is up.

- Application clients, Enterprise JavaBeans (EJB) components, and web components can send or synchronously receive a JMS message.

- Application clients can in addition receive JMS messages asynchronously. (Applets, however, are not required to support the JMS API.)

- Message-driven beans, which are a kind of enterprise bean, enable the asynchronous consumption of messages.

- A JMS provider can optionally implement concurrent processing of messages by message-driven beans.

- Message send and receive operations can participate in distributed transactions, which allow JMS operations and database accesses to take place within a single transaction.
Use of Message object
JMS Message object - Message Object is a light weight entity that comprises of only header and properties. It does not comprise of payload...
What is the use of JMS BytesMessage?
JMS BytesMessage - BytesMessage contains an array of primitive bytes in it's payload. When the datatypes of two applications are not compatible...
Use of StreamMessage
JMS StreamMessage - StreamMessage carries a stream of Java primitive types as it's payload. Unlike ByteMessage, there are restrictions..
Post your comment