J. King wrote:
> True, there is an <env-entry> tag in web.xml which should bind a name to a
> value for "/ejb/catalog/CatalogDAOClass" which should in turn, I assume, be
> accessible from the servlet using
> "java:comp/env/ejb/catalog/CatalogDAOClass".
>
> I don't think, however, that JBoss 2.2.2 binds <env-entry>s from web.xml
> into the jndi tree under a tomcat scope. You have to use jboss-web.xml.
This is an env-entry? You might be able to simply supply an empty
jboss-web.xml. I was thinking that this was a DataSource being looked up.
>
> Buuuuutttt, that gets into something circular: you can't reference something
> from jboss-web.xml unless it has already been bound into the jndi directory
> and as a result you can't add environment variables to the jndi directory
> for the tomcat scope using either the web.xml or jboss-web.xml files. You
> have to do it progammatically, as far as I can tell.
I don't follow. names in jboss-web.xml tell JBoss _how_ to map things in
JNDI - both descriptors (standard and jboss specific) are read together,
then the JNDI naming context is set up.
-danch
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user