2 Replies Latest reply on Jun 18, 2012 7:48 AM by jaysensharma

    JNDI name ?

    gajendra083

      While deployment getting around 8 JNDI name for a EJB, which one should I use to access ?

       

      INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings

       

      java:global/lms/lmsEjbs/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBrokerHome

      java:app/lmsEjbs/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBrokerHome

      java:module/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBrokerHome

      java:jboss/exported/lms/lmsEjbs/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBrokerH

      java:global/lms/lmsEjbs/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBroker

      java:app/lmsEjbs/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBroker

      java:module/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBroker

      java:jboss/exported/lms/lmsEjbs/com.lms.studentUIBroker.StudentUIBroker!com.lms.studentUIBroker.StudentUIBroker

        • 1. Re: JNDI name ?
          sergiu_pienar

          See this link : https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7 (the relevant section is Update application JNDI namespace names)

          • 2. Re: JNDI name ?
            jaysensharma

                   According to EE6 standards.....Three JNDI namespaces are used for portable JNDI lookups: java:global, java:module, and java:app.

            • The java:global JNDI namespace is the portable way of finding remote enterprise beans using JNDI lookups. JNDI addresses are of the following form: 
              java:global[/application name]/module name/enterprise bean name[/interface name]

              Application name and module name default to the name of the application and module minus the file extension. Application names are required only if the application is packaged within an EAR. The interface name is required only if the enterprise bean implements more than one business interface.

            • The java:module namespace is used to look up local enterprise beans within the same module. JNDI addresses using the java:module namespace are of the following form: 
              java:module/enterprise bean name/[interface name]

              The interface name is required only if the enterprise bean implements more than one business interface.

            • The java:app namespace is used to look up local enterprise beans packaged within the same application. That is, the enterprise bean is packaged within an EAR file containing multiple Java EE modules. JNDI addresses using the java:app namespace are of the following form: 
              java:app[/module name]/enterprise bean name[/interface name]

              The module name is optional. The interface name is required only if the enterprise bean implements more than one business interf

             

             

            "java:jboss/exported"   (JBossAS7 specific Jndi Name)

            "java:jboss/exported"    ... Note that any jndi name with the exported prefix as mentioned (java:jboss/exported) will be available for remote access.

             

             

            So that's why you are getting the Four JNDI Names for a single Bean.... And the Fourth one which you are getting is starting with