I want to figure out why some body go for JMS when having REST, so let me know, What JMS can do which REST can not do?
Thanks in advance for your responses.
I want to figure out why some body go for JMS when having REST, so let me know, What JMS can do which REST can not do?
Thanks in advance for your responses.
If you use JMS, you can use Message Queue. If you have Message Queue ,you can keep messages and don't worry about lost message (Request in REST). You can scale out your systems to receive message.
We manage master data in J2EE for our retail business. We create/modify the master data 24/7, an the modified information must be sent to multiple transaction applications in near-real time (asynchronous). Therefore, we use JMS to push the modification into the Topic in IBM MQ, and have the data formatted in the native format (COBOL/XML/Byte) in IIB and send them to the respective receiving applications.
Where as, before deleting a given piece of master data, we need to confirm if the given master data has any existing inventory left in any store or warehouse, and we use REST-JASON to validate against the inventory system in a real time. This is 1-to-1 synchronous communication and hence we went for REST-JSON.