Difference between JMS and RPC

What is the difference between JMS and RPC?

The basic difference between RPC and JMS lies in the way they message. RPC uses synchronous messaging while JMS uses asynchronous messaging approach.

In RPC the method invoker waits for the method to finish execution and return the control back to the invoker.
In JMS the message sender just sends the message to the destination and continues it's own processing.
What are the advantages of JMS?
JMS advantages - Due to asynchronous messaging, all the pieces don’t need to be up for the application to function as a whole...
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...
Post your comment