JNDI_NAME vs COMP_NAME - Which one?

For EJB lookup operations (EJB-2), there are two lookup names for a single bean as JNDI_NAME and COMP_NAME. Some people explain that both these tehniques are the same. How do you compare those two? ThanksBala
[229 byte] By [Boobalan.jeyaa] at [2007-9-25]
# 1

They are very different.The only portable way to lookup any dependencies , e.g. ejb references, from

a Java EE component is to do it through the component's private component namespace, also known

as java:comp/env.*Any* access of a global JNDI namespace is not portable. The specs make no

mention of a global JNDI namespace, so accessing one is by definition accessing something whose

behavior is not defined.We have a presentation that covers some of these topics available at :

https://glassfish.dev.java.net/javaee5/ejb/compdependencies_xmlforum_nov15.pdf

--ken

ksaksa at 2007-7-15 > top of java,Enterprise & Remote Computing,Enterprise Technologies...