[jboss-user] [Tomcat, HTTPD, Servlets & JSP] Virtual host environment

Steve svangasse at googlemail.com
Thu Jul 19 15:13:03 EDT 2007

Does anyone know how to configure a different set of JNDI environment
entries for each virtual host that uses the same WAR in JBoss? This can be
done with stand alone Tomcat using context.xml fragments under

  <Environment description="Unique Host ID" name="siteId" type="
java.lang.String" value="site1"/>

I can then give each virtual host it's own siteId so that it accesses the
correct rows from a shared database.

This doesn't seem to work with Tomcat embedded in JBoss. The closest I have
found so far is jboss-web.xml under WEB-INF inside the WAR, but it seems
that you can only configure environment entries for this WAR that would then
be shared across all virtual hosts that use it.

Any ideas?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20070719/5ecf92ed/attachment.html 

More information about the jboss-user mailing list