This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Synchronus JMS Vs. HTTP request-response for SOA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Synchronus JMS Vs. HTTP request-response for SOA" Watch "Synchronus JMS Vs. HTTP request-response for SOA" New topic
Author

Synchronus JMS Vs. HTTP request-response for SOA

K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
I don't know if this question fits under Other Java EE Technologies but here is my question,

For SOA architecture what is better synchronus messaging through JMS or a simple HTTP request/response scenario?

What are the advantages of choosing either of the two?

Thanks,


Aditi
Kumar Subramanian
Greenhorn

Joined: Oct 01, 2008
Posts: 8
I assume with req/resp over http you meant RESTful web services. If you can make a choice, go for simple RESTful XML over http solution. Coz, you dont need any additional middleware infrastructure and in synchronous messaging your communicating systems are tightly coupled. More loosely coupled solution is a better SOA.

In case you meant otherwise, it is good to opt for a SOAP based web service or a RESTful web service based on your specific needs.


Subramanian, Kumar [kumar@eminenttech.com]<br />J2EE Architect, <a href="http://www.eminenttech.com" target="_blank" rel="nofollow">Eminent Technology Solutions (ETS)</a><br />Software / Portals / Alfresco / Outsourcing / Proteomics
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
But what about JMS?Is it a viable option?
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Aditi,

JMS is a viable option for service producers and consumers that can do messaging such as Java applications, Microsoft systems using MSMQ and mainframe applications that use MQ-Series. In practice, this works inside the enterprise and between close B2B partners. For generally consumable services,
SOAP or REST is better.

Cheers,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
K Aditi
Ranch Hand

Joined: Mar 17, 2008
Posts: 89
Kumar and Reza thanks for the response.
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
My pleasure.

Cheers,
Reza
 
wood burning stoves
 
subject: Synchronus JMS Vs. HTTP request-response for SOA