tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <>
Subject Re: Query the current port used via API
Date Sat, 21 Jun 2008 12:20:44 GMT
Hi Alexander,

Alexander Hartner schrieb:
> Is there an API call I can use from a LifeCycleListener to query all 
> connectors for their ports and configuration (SSL / Plain). I would like 
> to advertise the presence of Tomcat on the network via zeroconf / 
> bonjour. I am hoping there is an API call I can use rather then parse 
> the server.xml file.

Tomcat registers and MBean (JMX) for each connector. You can query the 
mbean server and retrieve the info from there.

> Thanks
> Alex



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message