tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lahiru Gunathilake <glah...@gmail.com>
Subject Re: How to get Tomcat HTTP port during startup of the server
Date Fri, 07 Oct 2011 18:35:52 GMT
Hi

On Fri, Oct 7, 2011 at 2:20 AM, Pid * <pid@pidster.com> wrote:

> On 6 Oct 2011, at 19:22, Lahiru Gunathilake <glahiru@gmail.com> wrote:
>
> > Hi Charles,
> >
> > 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 startup I need to register them
> before
> > I get any request.
>
> Arguably, there's no rush as you won't get requests until the registry
> reports to its clients that your service is available.
>
> JMX 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.Caldarale@unisys.com> wrote:
> >
> >>> From: Lahiru Gunathilake [mailto:glahiru@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 Tomcat may
> be
> >> listening on multiple ports, not just one.
> >>
> >>> before getting any HttpRequest I need to talk tomcat
> >>> HTTP port.
> >>
> >> What do you think you are going to say when you talk to one of the
> Tomcat
> >> ports?
> >>
> >>> Can someone please tell me how to access the http port
> >>
> >> You can use JMX to query nearly all of the Tomcat configuration
> settings.
> >>
> >> - Chuck
> >>
> >>
> >> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> >> MATERIAL and is thus for use only by the intended recipient. If you
> received
> >> this in error, please contact the sender and delete the e-mail and its
> >> attachments from all computers.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> >> For additional commands, e-mail: users-help@tomcat.apache.org
> >>
> >>
> >
> >
> > --
> > System Analyst Programmer
> > PTI Lab
> > Indiana University
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
System Analyst Programmer
PTI Lab
Indiana University

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message