File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes HTTP and JMS communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "HTTP and JMS communication" Watch "HTTP and JMS communication" New topic

HTTP and JMS communication

Vivek Hingorani
Ranch Hand

Joined: Jul 08, 2011
Posts: 43
I was recently asked in one of the interviews that how would i marry HTTP and JMS protocols in one enterprise system.
At one place JMS is asynchronous and doesn't allow a response back and a request is coming from HTTP(stateless protocol) and how would I have a system which accepts a response back from my JMS system.
In short how would I combine HTTP and JMS?
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
What was your answer?
Vivek Hingorani
Ranch Hand

Joined: Jul 08, 2011
Posts: 43
I didnt knew and hence asking it on the forum
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 471
@Ulf Dittmer,

JMS: From what I understand:

1. point to point async: fire and forget
Sender ---> queue ---> Receiver

2. point to point async: request and reply
Sender ---> in queue ---> Receiver
Sender <--- out queue <--- Receiver
by message correlation technique

I just wonder if point 2 a form of synchronous communication or not?
I agree. Here's the link:
subject: HTTP and JMS communication
It's not a secret anymore!