The servlet API does not support getting the port before any requests have arrived AFAIK. Also, you cannot write Tomcat specific code to get the ports since Axis2 has to run on multiple App servers. However, if you can live with writing custom Tomcat code, there is a Tomcat MBean that will give you this information.
HTH Azeez On Wed, Dec 17, 2008 at 6:35 PM, Srinath Perera <hemap...@gmail.com> 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 > > -- > ============================ > Srinath Perera: > Indiana University, Bloomington > http://www.cs.indiana.edu/~hperera/<http://www.cs.indiana.edu/%7Ehperera/> > http://www.bloglines.com/blog/hemapani > -- Thanks Afkham Azeez Blog: http://afkham.org Developer Portal: http://www.wso2.org WSAS Blog: http://wso2wsas.blogspot.com Company: http://wso2.com GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760