I searched the existing threads and couldnt find anything related to it. Could you please provide steps to deploy JAX-WS (Axis2) in TomCat? Axis2 documentation suggests 2 ways- (http://ws.apache.org/axis2/1_4_1/jaxws-guide.html#DeployService). Both of them do not satisfy my requirement. I want the service to be deployed as a WAR...could somebody give me the steps to do it?
As per the Apache axis2 documentation, all the webservices will be deployed under <TomcatRoot>/webapps/axis2/WEB-INF/servicejars/. My requirement is to have 4 webservices running in Tomcat. If I go with what axis2 documentation says, all the webservices will be deployed under a single servlet called axis2. If I want to bring down one service for some maintenance, I have to bring down all of them...If I have them as individual Wars, it is easy for maintenance. I have another long term requirement also....sometimes down the line, I want to move that service to Websphere without any effor or with minimal effort...If I have it as War, it will be easy to move to websphere.
Which SOAP stack are you going to be using in WebSphere? Is it acceptable to bring it down just to update a single service? Or does that SOAP stack support updating individual services without impacting the other ones?
It's of course possible to run a full Axis web app for each service that you intend to deploy, thus giving you the ability to start, stop and update each individual web service whenever you desire.
Joel John wrote:I have another long term requirement also....sometimes down the line, I want to move that service to Websphere without any effor or with minimal effort...If I have it as War, it will be easy to move to websphere.
Neither JAX-WS or its pre-decessor JAX-RPC have a deployment concept of a "web service component" that is equivalent to that of a "web component". The specifications simply describe the API and configurations that an environment for building Java web service providers and consumers has to support - and there are gaps that implementing platforms fill in a platform dependent manner. So its likely that you will have to at the very least recompile your code under another API implementation. To be sure that you can move your code later, you better plan ahead and test it now under both platforms.
Furthermore Axis2 implemented JAX-WS on top of its own web service API architecture rather than designing an "optimal" architecture for supporting the JAX-WS spec.
Java SE 6 supports JAX-WS and the endpoint is published programmatically with a statement like: