ActiveMQ provides a REST based API to its message bus...
http://activemq.org/REST
which allows you to use HTTP GET and POST to send/receive messages. In addition there is Ajax support too to allow JavaScript to integrate with JMS
http://activemq.org/Ajax
There's also a JMS client which talks over HTTP for tunnelling.
Finally if you want to easily integrate HTTP, JMS, Jabber, email and other protocols together into a logical service/message bus, you can try ServiceMix
http://servicemix.org/
All the above software is open source (Apache 2.0 licensed)
James
http://logicblaze.com/
I'm using openJMS with resin and servlets.
How do i send a JMS message of type HttpServletRequest to my JMS listener servlet to process the request asynchronously.
I'm thinking of converting the request into a String and using TextMessage.setText to set the request into the message and send it over.
StringBuffer buffer = new StringBuffer();
BufferedReader reader = request.getReader();
for (String line; (line = reader.readLine()) != null;)
{
buffer.append(line);
}
String text = buffer.toString();
TextMessage message = null;
try
{
message.setText(text);
}
catch (JMSException e)
{
throw new ServletException(e.toString());
}
Problem is will it work ? and if so at the Listener servlet's onMessage(Message msg) method, how do i convert the text back into a HttpRequestServlet object so that i can process the request at the listener end.
Thanks(Hopefully i will not need activeMQ and apache.commons.messaglet) as there is not much time to change.
Hi again...
i m using j2sdkee1.3 as a JMS provider.
n thinking of using SOAP for solution to the posted topic.
so, can anyone describe how to go about integrating soap over jms for http compatability.
coz i m new to jms - can anybody suggest me what api with a sample code to go about the process....
looking forward to favourable replies
thanks in advance...
A B H I N A V . . . . .