axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinath Perera" <>
Subject Re: [Axis2]Finding current tomcat Port from Axis2
Date Thu, 18 Dec 2008 20:08:13 GMT
No, that code again go and call listenerManager.getEPRforService(..),
which I was using. I walked through the code, and
listenerManager.getEPRforService(..) work fine with other transports,
but with tomcat, it reads the port off the first request. When in
doubt  (before the request arrives) it give 8080, which is the case
thilina was complaining .

For my usecase, I can not wait for the first request as what I am
developing is a management agent. for now, I wrote a code to parse
tomcat server.xml.

Thanks very much

On Thu, Dec 18, 2008 at 2:50 PM, Sanjiva Weerawarana
<> wrote:
> Srinath, doesn't ServiceContext.getMyEPR() give you the info you need?
> Sanjiva.
> Srinath Perera wrote:
>> Hi All;
>> Is there a way to find the current tomcat port using Axis2 (I need it
>> to set a replyto address)? Ideally I want to find the service port at
>> the start up, before any request arrived. If that does not work, I
>> might be able to live with getting it with message context. Does the
>> message context property TRANSPORT_ADDR give what I want to find?
>> Thanks very much
>> Srinath
> --
> Sanjiva Weerawarana, Ph.D.
> Founder & Director; Lanka Software Foundation;
> Founder, Chairman & CEO; WSO2, Inc.;
> Member; Apache Software Foundation;
> Visiting Lecturer; University of Moratuwa;
> Blog:

Srinath Perera:
   Indiana University, Bloomington

View raw message