Source: EJB 3.1 Specification
4.4 Global JNDI Access
The Java EE Platform Specification defines a standardized global JNDI namespace and a series of
related namespaces that map to the various scopes of a Java EE application.
These namespaces can be used by applications to portably retrieve references to components and resources.
Each portable session bean global JNDI name has the following syntax :
java:global[/<app-name>]/<module-name>/<bean-name>[!<fully-qualified-interface-name>]
java:app
The java:app prefix allows a component executing within a Java EE application to access an appli-
cation-specific namespace
java:module
The java:module prefix allows a component executing within a Java EE application to access a mod-
ule-specific namespace
So,
java:global namespace is for external applications for accessing Java EE Beans.
I have a couple of queries on "Global JNDI Access"
Q1. If
java:global fulfills the purpose,then why are the other two i.e
java:app and java:module required ?
Q2. What does the text "
access an application-specific namespace and a module-specific namespace " means for
java:module and java:app namespaces ?