Hi,
I'm getting thoroughly confused as to what is going on with the naming lookups
in the Java Pet Store example. There seems to be a solution here:
http://www.jboss.org/manual/examples.html#petstore6
QUOTE:
The default JNDI lookups (in com.sun.estore.util.EJBUtil) assume that the JNDI
names for beans will be the same regardless of whether the caller is a JSP or
EJB. This is not the case for JBoss and Tomcat - the EJB lookups are the same
(for example, java:comp/env/ejb/catalog), but the JSP lookups are different (for
example, TheCatalog).
Why is this? Why should different J2EE servers (RI and JBoss)behave differently
WRT the names that are registered with JNDI?
In Suns RI, the lookup is for something like "java:comp/env/jdbc/EstoreDataSource"
but in JBoss it is for "EstoreDB" -
It'd be great if someone can explain why the two servers ended up being
configured differently.
Also, where does JBOSS / Tomcat get the jndi registrations from? Are they taken
from jboss-web.xml?
Is there somewhere I can look to get this info myself - avoid the RTFM responses :)
Cheers
Nathan
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user