Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 99864 invoked from network); 30 Jul 2004 14:09:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 30 Jul 2004 14:09:27 -0000 Received: (qmail 39971 invoked by uid 500); 30 Jul 2004 14:09:13 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 39923 invoked by uid 500); 30 Jul 2004 14:09:12 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 39803 invoked by uid 99); 30 Jul 2004 14:09:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [128.143.137.19] (HELO ares.cs.Virginia.EDU) (128.143.137.19) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 30 Jul 2004 07:09:09 -0700 Received: from viper.cs.Virginia.EDU (viper.cs.Virginia.EDU [128.143.137.17]) by ares.cs.Virginia.EDU (8.12.10/8.12.10/UVACS-2003031900) with ESMTP id i6UE8jYG024213 for ; Fri, 30 Jul 2004 10:09:01 -0400 (EDT) Received: from localhost (an4m@localhost) by viper.cs.Virginia.EDU (8.12.10+Sun/8.12.10/Submit) with ESMTP id i6UE8j0H009433 for ; Fri, 30 Jul 2004 10:08:45 -0400 (EDT) Date: Fri, 30 Jul 2004 10:08:45 -0400 (EDT) From: Anand Natrajan Reply-To: Anand Natrajan To: axis-user@ws.apache.org Subject: Re: Multiple deployments In-Reply-To: <410A2AD4.9010509@astro.livjm.ac.uk> Message-ID: References: <410A2AD4.9010509@astro.livjm.ac.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jason, 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 server-config.wsdd. 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. Anand 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 : -Dserver.hostname=my.server.com'-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