Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 56998 invoked from network); 9 Apr 2009 18:37:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Apr 2009 18:37:58 -0000 Received: (qmail 72112 invoked by uid 500); 9 Apr 2009 18:37:55 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 72011 invoked by uid 500); 9 Apr 2009 18:37:55 -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: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 71985 invoked by uid 99); 9 Apr 2009 18:37:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 18:37:53 +0000 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=SPF_PASS,URIBL_BLACK X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sagara.gunathunga@gmail.com designates 74.125.46.158 as permitted sender) Received: from [74.125.46.158] (HELO yw-out-1718.google.com) (74.125.46.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Apr 2009 18:37:44 +0000 Received: by yw-out-1718.google.com with SMTP id 9so487951ywk.88 for ; Thu, 09 Apr 2009 11:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=/0T1v1ewciMamOpiJiPVW+2cCiMv5aJhbBP9C7fx+Mg=; b=vl82EJVv2tEz/WXXsObUGLFyFp1BG/8OxiTjXYTJfBrqVlevFhXuk4S7WUBdgX/dyx flhV0JRaWmC8z6lffqSIe0iLQuHAJjumiFAifmL7Fi2fJ3Tmi2XWIEWi7wI+P1W3nin4 ycRT5Xwh9WUk/0QwwctrfMmHaKQTEmY9uIRQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=oT+VK70rP8mymMVuet0gHr7/3FtpbAihRLU9fleO9IQCcRkjIVD23w+UnH/wax16kH E3goqLaphp677T3IjukLUaqig6WD4XpPRC2YqBEwfzYlfdA7pyOCf49EPPz/yCVTATB6 n6gG0vU4aJdbWw0fWYMcqhrVo0P9/XT7WD2Ss= MIME-Version: 1.0 Received: by 10.100.152.19 with SMTP id z19mr800377and.16.1239302243670; Thu, 09 Apr 2009 11:37:23 -0700 (PDT) In-Reply-To: <0F821B5D99A2B242B9C66A06AF9AB8BE010A91DE@CORSAIR.us.responsys.com> References: <0F821B5D99A2B242B9C66A06AF9AB8BE4B8C14@CORSAIR.us.responsys.com> <474d01b00904071236k43dba1b4w560334025da475d5@mail.gmail.com> <0F821B5D99A2B242B9C66A06AF9AB8BE010A8E30@CORSAIR.us.responsys.com> <0F821B5D99A2B242B9C66A06AF9AB8BE010A91DE@CORSAIR.us.responsys.com> From: Sagara Gunathunga Date: Fri, 10 Apr 2009 00:07:08 +0530 Message-ID: <474d01b00904091137l3cbd148dm1f31db2d939337f0@mail.gmail.com> Subject: Re: [Axis2] Setting hostname in axis2.xml ???? - NOT WORKING To: axis-user@ws.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Raghu, Can you post your skeleton class along with service.xml file....? Thanks, On Thu, Apr 9, 2009 at 11:59 PM, Raghu Upadhyayula wrote: > Hi Sagara, > > =C2=A0 =C2=A0 =C2=A0 =C2=A0I have a skeleton class generated from WSDL2Ja= va. =C2=A0I've changed that skeleton class to implement the ServiceLifeCycl= e interface & implemented the startup method. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0Looks like that startup method is never called= , because after that change also I'm getting a private IP address in the so= ap:address location in WSDL. =C2=A0I've put a debug point in the startup me= thod & the control never stopped at the debug point. > > Thanks > Raghu > > -----Original Message----- > From: Sagara Gunathunga [mailto:sagara.gunathunga@gmail.com] > Sent: Tuesday, April 07, 2009 2:36 PM > To: axis-user@ws.apache.org > Subject: Re: [Axis2] Setting hostname in axis2.xml ???? > > Hi Raghu , > You can use same "hostname" parameter =C2=A0programatically either =C2=A0= in > service level or module level . one possible approach is given below . > > 1. Implement the =C2=A0"ServiceLifeCycle" interface within your service > class or as a separate class . > > 2. set the =C2=A0value to "hostname" parameter within the startUp ( ...) = method. > > =C2=A0 =C2=A0 =C2=A0 =C2=A0axisService.getAxisConfiguration().addParamete= r("hostname", > "myhost.com"); > > 3. add your LifeCycle class to service.xml file. > > =C2=A0 =C2=A0 > > > Thanks > > > On Tue, Apr 7, 2009 at 9:39 PM, Raghu Upadhyayula > wrote: >> Hi, >> >> >> >> I=E2=80=99m using Axis2 1.4 version.=C2=A0 I have to set the hostname in= axis2.xml so >> that the soap:address location in the WSDL (when user types ?wsdl) uses = that >> hostname instead of showing a IP address. >> >> >> >> The problem I have is that my webservices war file is deployed on multip= le >> servers and I can=E2=80=99t manually edit each axis2.xml file for each s= erver. >> >> >> >> Is there any option to read the server name from some properties file & = set >> it to the hostname in axis2.xml programmatically? >> >> >> >> Thanks >> >> Raghu > > > > -- > Sagara Gunathunga > > Blog - http://ssagara.blogspot.com > Web - http://sagaras.awardspace.com/ > --=20 Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/