3 Replies Latest reply on Mar 12, 2002 12:59 PM by Adrian Brock

    JBoss 2.4.4 JNDI Names not present in InitialContext

    esmierciak Newbie

      All,

      I've been working with JBoss 2.4.4 and everything seems to be working fine, with the exception of the JDNI behavior. When I create my InitialContext and list the bindings, the jndi names for by EJBs DO NOT show up in the NamingContext, in spite of the fact that I gave them names using <jndi-name> elements in jboss.xml. HOWEVER, my EJBs do show up in the NamingContext registered under their EJB names.

      Another curious thing is that, as JBoss is starting up, it prints to the console that it is registering names like
      java:/Mail
      java:/DefaultDS

      which don't show up in the InitialContext either.

      The following is a "walk" of the NamingContext tree, starting with the InitialContext and working down through the subcontexts that I could spot, which include "queue", "invokers" and "topic".

      Thanks very much for any help on this.

      ---------------------------- context:InitialContext
      Context Environment: {java.naming.provider.url=localhost:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jboss.naming}
      jmx:i7500:rmi: org.jboss.jmx.server.RMIConnectorImpl
      TopicConnectionFactory: javax.naming.LinkRef
      jmx: org.jboss.jmx.server.JMXAdaptorImpl
      TestSessionBean: $Proxy5
      ConnectionFactory: org.jboss.mq.SpyConnectionFactory
      UserTransactionSessionFactory: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl
      XAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
      invokers: org.jnp.interfaces.NamingContext
      UserTransaction: org.jboss.tm.usertx.client.ClientUserTransaction
      UILXAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
      RMIXAConnectionFactory: org.jboss.mq.SpyXAConnectionFactory
      TestEntityBean: $Proxy4
      queue: org.jnp.interfaces.NamingContext
      topic: org.jnp.interfaces.NamingContext
      UILConnectionFactory: org.jboss.mq.SpyConnectionFactory
      servercollector: org.jboss.management.ServerDataCollector
      RMIConnectionFactory: org.jboss.mq.SpyConnectionFactory
      UserManagerEJB: $Proxy3
      UserEntityEJB: $Proxy2
      QueueConnectionFactory: javax.naming.LinkRef
      ---------------------------- DONE InitialContext.
      ---------------------------- context:queue
      Context Environment: {java.naming.factory.url.pkgs=org.jboss.naming:org.jboss.naming, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=localhost:1099}
      D: org.jboss.mq.SpyQueue
      C: org.jboss.mq.SpyQueue
      B: org.jboss.mq.SpyQueue
      A: org.jboss.mq.SpyQueue
      controlQueue: org.jboss.mq.SpyQueue
      testQueue: org.jboss.mq.SpyQueue
      ex: org.jboss.mq.SpyQueue
      DLQ: org.jboss.mq.SpyQueue
      F: org.jboss.mq.SpyQueue
      E: org.jboss.mq.SpyQueue
      ---------------------------- DONE queue.
      ---------------------------- context:topic
      Context Environment: {java.naming.factory.url.pkgs=org.jboss.naming:org.jboss.naming, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=localhost:1099}
      example: org.jboss.mq.SpyTopic
      testTopic: org.jboss.mq.SpyTopic
      bob: org.jboss.mq.SpyTopic
      ---------------------------- DONE topic.
      ---------------------------- context:invokers
      Context Environment: {java.naming.factory.url.pkgs=org.jboss.naming:org.jboss.naming, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=localhost:1099}
      UserManagerEJB: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker
      TestEntityBean: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker
      TestSessionBean: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker
      UserEntityEJB: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker
      ---------------------------- DONE invokers.