Web service as a JAR file, or WAR inside another WAR?

I have a SOAP web service running on Tomcat 6 (using Spring Web Services, Java)

Now I want to merge this webservice into another big web application (uses Spring, Java and not a web service) and use the web service as kinda plugin for the main web app. I mean when I run my main app my web service will also start to run. And they will use the same resources.

The main web app already has several plugins which are JAR files in its WEB-INF/LIB folder. But my web service is a WAR file so can I use a web application (WAR file) inside another web applications WEB-INF/LIB folder?

If I can not do that is that possible to remove the WEB-INF folder of my web service and make my web service a JAR file and put it under my main apps WEB-INf/LIB folder? I am not sure that I can serve a web service as a JAR file.

Which approach do you think is better or do you have other suggestions?

Thanks

7
задан bluish 29 December 2011 в 14:08
поделиться