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 why,
sometimes those parameters are empty.

Can someone please tell me how to access the http port or else how can I
know server.xml location from servletContext so that I can directly read
from server.xml but thats not in my application classpath so I cannot load
it from the classpath files.

Appreciate your response !

Lahiru

-- 
System Analyst Programmer
PTI Lab
Indiana University

Reply via email to