Spring Remote, configure httpinvoker and JAX on the same server

192 Views Asked by At

I have a server running on tomcat exposing Spring services using HttpInvoker.

I have exposed the methods of 5 services using HTTPInvoker.

This works very well.

The spring configuration is described in a file named remoting-servlet.xml; and the remoting servlet (DispatcherServlet) is described in the web.xml.

I now have an additional need to expose one additional service using JAX-WS this time (I will have C# clients).

I will use Spring support to JAX-WS.

I have the option to use the default deployment, or to use JAX-WS RI's to deploy this additional service to the same server as the remoting servlet.

I would prefer this last solution, because I would have only one server providing the remote services (whether they are web services or httpinvokers).

My question is: is this possible?

I think that I can I put the 2 servlets on the same port. But my issue is that it seems to me that I will have to provide 2 different application contexts. One for the DispatcherServlet, and one for the WSSpringServlet.

Is that correct?

Is it possible to put the WSSpringServlet context definition to the same file as the one for the httpinvokers (remoting-servlet.xml)?

Many thanks

Gilles

0

There are 0 best solutions below