yep, but MBean work only if MBean server is truned on (am I right?), which is off by default AFAIK. Group of people suppose to use my agent and I can not ask them all to turn on JMX. If worse come to worse I would provide a configuration parameter. Thanks Srinath
On Thu, Dec 18, 2008 at 3:15 PM, Afkham Azeez <[email protected]> wrote: > This is a bit tricky since the Tomcat's server.xml file is different from > version to version. Hence you will be tied to one or just a few versions of > Tomcat. On the other hand, if you had used the MBean, you could have easily > supported multiple versions of Tomcat. > > Azeez > > On Fri, Dec 19, 2008 at 1:38 AM, Srinath Perera <[email protected]> wrote: >> >> 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 >> Srinath >> >> >> On Thu, Dec 18, 2008 at 2:50 PM, Sanjiva Weerawarana >> <[email protected]> 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; http://www.opensource.lk/ >> > Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/ >> > Member; Apache Software Foundation; http://www.apache.org/ >> > Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/ >> > >> > Blog: http://sanjiva.weerawarana.org/ >> > >> >> >> >> -- >> ============================ >> Srinath Perera: >> Indiana University, Bloomington >> http://www.cs.indiana.edu/~hperera/ >> 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 > -- ============================ Srinath Perera: Indiana University, Bloomington http://www.cs.indiana.edu/~hperera/ http://www.bloglines.com/blog/hemapani
