Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [Installation,
 Configuration & DEPLOYMENT] - Re: Sharing wars between virtual hosts

scott.stark@jboss.org

2007-07-17


anonymous wrote : In JBoss, is there a JNDI context for each web context

Are you looking for "env-entry" for each web context, in which case each of the web-context will have the entry in its own java:/comp/env namespace.

More details about env-entry can be found in the dtd of web.xml at http://java.sun.com/dtd/web-app_2_3.dtd:

<!--
| The env-entry element contains the declaration of a web application's
| environment entry. The declaration consists of an optional
| description, the name of the environment entry, and an optional
| value. If a value is not specified, one must be supplied
| during deployment.
| -->
| <!ELEMENT env-entry (description?, env-entry-name, env-entry-value?,
| env-entry-type)>
|
| <!--
| The env-entry-name element contains the name of a web applications's
| environment entry. The name is a JNDI name relative to the
| java:comp/env context. The name must be unique within a web application.
|
| Example:
|
| <env-entry-name>minAmount</env-entry-name>
|
| Used in: env-entry
| -->
| <!ELEMENT env-entry-name (#PCDATA)>



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065131#4065131

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065131
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.