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


Dhananjay Inamdar
Ranch Hand

Joined: Jan 27, 2003
Posts: 130
Hello All,
I have one question regarding the JMS communication.
I have JMS Queue installed on server side and my client don't want to install JMS to his
side. I am exposing some methods as a web service through my server. My client will send me
the SOAP message across HTTP. I am converting this soap-http message in to the soap-jms
message. I will work on this request message and generate a response message for my client.
My problem is as my client doesn't have any queuing mechanisum like JMS or MQ-Serires then
how can I send back him the message. Here my main concern is reliability, security of
message across communication i.e. end-to-end.
So, if anybody has any suggestion then please let me know.
Thanks in advance!

Just like you, struggeling to get the right solutions!<br /> <br />Sun Certified Java Programmer 1.5<br /> <br />Target - SCWCD
Kyle Brown
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
Well, there's basically two solutions:
(1) If the client can act synchronously, then synchronously wait on the message to be received back from the JMS queue and then return the message in the HTTP response for the original request.
(2) A possibly better solution is to allow the client machine to poll for the answer. Have a service that checks a response queue for the answer and just have it either return null (no answer) or the final answer.

Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at for other WebSphere information.
I agree. Here's the link:
subject: SOAP over JMS
jQuery in Action, 3rd edition