Search code examples
web-servicesjmsjava-metro-frameworkforwarding

Forwarding web services through JMS


I'm trying to figure out how to forward web service requests from the web server to a remote application server through jms. In my architecture there are web services client which communicate with some web server (Tomcat) which needs to forward the request to be executed on a remote application server and at the end get the result and push it back to the web service client. Something like: Web Service Client <-> HTTP <-> Tomcat <-> JMS <-> Application Server. I want to use jax-ws so my methods will be called automatically in the application server. Although I've expected this will be common approach, I didn't find any examples. I would appreciate if someone can provide some links or tips on how such a configuration can be built. Currently I'm using Metro but any other solution is valid as well. Another aspect which I'm interested in, is whether I can use the fast-infoset over JMS to increase performance. Thanks in advance, Avner


Solution

  • One option to solve it is using Apache Camel.

    Then you can configure such a thing with an XML configuration file.