access to host list from a servlet?

is there any access to the list of hosts or any server.xml objects from a servlet, application or session?can you get a list of the hosts? can you get their names in a list?
[187 byte] By [arabotha] at [2007-10-2 11:03:41]
# 1
Which hosts are you asking about?
DrClapa at 2007-7-13 3:36:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

in the tomcat server.xml you can specify different hosts/applications and given them contexts, valves, etc.i'd like to be able to get a list of these hosts, and possibly their contexts.is that possible? the manager application does it i believe, but i don't see anything that would let me get the application name, or a list of all ofthem.is there a container higher then application we can get?

arabotha at 2007-7-13 3:36:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
no one has any idea?
arabotha at 2007-7-13 3:36:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
read about getServletConfig and getServletContext. Those are your starting points.
vbaggaa at 2007-7-13 3:36:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
so i takeit you don't know of a way once inside servletcontext.. because thats just the single app. i need a list of all of them.is there anything higher then application level?
arabotha at 2007-7-13 3:36:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
anyone know how to access the list of apps?
arabotha at 2007-7-13 3:36:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...