axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Natrajan <>
Subject Re: Multiple deployments
Date Fri, 30 Jul 2004 14:08:45 GMT

Axis does not require recompilation. If your application itself requires the
hostname, that's a different issue.

Let's say you develop your webservices on the machine batman. When doing so,
you will write Java interface/classe, java2wsdl them to get a WSDL,
wsdl2java that to get a WSDD and server skeletons. You will fill in the
skeletons - all code non-specific to batman. Then you will either paste the
deploy.wsdd got from wsdl2java into batman's Axis's server-config.wsdd or
you will start up the app server on batman, deploy Axis within and deploy
deploy.wsdd. The latter effectively does the former, i.e., pastes into

So far so good, you've deployed on batman. But now you want to deploy on the
machine spiderman as well. You don't have to recompile. All you have to do
is take your axis.war directory/file from batman and copy it over to
spiderman (assuming the jars for your application are inside axis.war's lib
directory). The WSDDs in question are NOT machine-specific, therefore by
doing so, you have deployed on spiderman as well.

How to check? Go to http://spiderman:8080/axis and drill your way down to
the WSDL for your service. You should clearly see the SOAP address point to
spiderman, not batman. You're set.


On Fri, 30 Jul 2004, Jason Etherton wrote:

: Just a quickie folks, I need to deploy the same webservice onto many
: different servers, so my question is:
: Do I have to recompile my code for every server with an 'ant
:'-type compilation, using the
: server.hostname property in the java2wsdl Ant script, or is there
: another (simpler) way?
: Thanks.
: As a small aside, why does the '-p' option (the new package into which
: the generated source files are placed) not exist in the Ant wsdl2java task?
: Jason

View raw message