Re: How to get Tomcat HTTP port during startup of the server

2011-10-07 Thread Lahiru Gunathilake
is the best solution, connect JConsole to your Tomcat & explore > the Catalina domain. > Yes, I will have a look how to do that ! Thanks lot ! Lahiru > > > p > > > On Thu, Oct 6, 2011 at 1:38 PM, Caldarale, Charles R < > > chuck.caldar...@unisys.com> w

Re: How to get Tomcat HTTP port during startup of the server

2011-10-06 Thread Pid *
11 at 1:38 PM, Caldarale, Charles R < > chuck.caldar...@unisys.com> wrote: > >>> From: Lahiru Gunathilake [mailto:glah...@gmail.com] >>> Subject: How to get Tomcat HTTP port during startup of the server >> >>> I have a requirement of getting the Tomcat HTT

Re: How to get Tomcat HTTP port during startup of the server

2011-10-06 Thread Lahiru Gunathilake
HI Christopher, That is what I have already done ! I thought its not nice users to put the same configuration in to another properties file ! Somehow currently I have a solution but I am trying to find a better solution. I appreciate your responses ! Tomcat user list seems awesome ! Lahiru On

Re: How to get Tomcat HTTP port during startup of the server

2011-10-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lahiru, On 10/6/2011 2:21 PM, Lahiru Gunathilake wrote: > This is my usecase, I want to register my application URL to a > repository and there is another remote application who reads that > URL somewhere and invoke my application. So during the start

Re: How to get Tomcat HTTP port during startup of the server

2011-10-06 Thread Lahiru Gunathilake
, Caldarale, Charles R < chuck.caldar...@unisys.com> wrote: > > From: Lahiru Gunathilake [mailto:glah...@gmail.com] > > Subject: How to get Tomcat HTTP port during startup of the server > > > I have a requirement of getting the Tomcat HTTP port during > > startup o

RE: How to get Tomcat HTTP port during startup of the server

2011-10-06 Thread Caldarale, Charles R
> From: Lahiru Gunathilake [mailto:glah...@gmail.com] > Subject: How to get Tomcat HTTP port during startup of the server > I have a requirement of getting the Tomcat HTTP port during > startup of my application. The obvious first question is: why? Also, you must know that T

How to get Tomcat HTTP port during startup of the server

2011-10-06 Thread Lahiru Gunathilake
Hi all, I have a requirement of getting the Tomcat HTTP port during startup of my application. I have the ServletContext object in me during startup, before getting any HttpRequest I need to talk tomcat HTTP port. I write a reflection code to access that even it doesn't work always I don't know wh