2 Replies Latest reply on Dec 9, 2001 4:53 PM by Joseph Fifield

    Lookup of LocalHome interface

    Erik Turesson Novice

      Hello!

      I am using JBoss 3.0 alpha.
      I have two SessionBeans and two Entity Bean.
      I manage to lookup one of the session beans through the remote interface. But I can not lookup the other throw their local interfaces.

      I have not done any specification of local-refs and so on in the ejb-jar.xml file.

      If I look in the JNDIView and lists the namespace I gets the following.

      .
      .
      .
      Application: file:/C:/Program/JBoss-Jetty/jboss/deploy/Default/webbpublication.ear/
      java:comp namespace of the SequenceSessionBean bean:
      +- env (class: org.jnp.interfaces.NamingContext)
      | +- blockSize (class: java.lang.Integer)
      | +- retryCount (class: java.lang.Integer)

      java:comp namespace of the MenuItemCollectionBean bean:
      +- env (class: org.jnp.interfaces.NamingContext)
      | +- MenuItemBeanRef (class: com.proventek.publ.menu.interfaces.MenuItemLocalHome)

      java:comp namespace of the SequenceBean bean:
      +- env (class: org.jnp.interfaces.NamingContext)

      java:comp namespace of the MenuItemBean bean:
      +- env (class: org.jnp.interfaces.NamingContext)

      .
      .
      .

      Global JNDI Namespace
      +- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
      +- UserTransactionSessionFactory (class: org.jboss.tm.usertx.server.UserTransactionSessionFactoryImpl)
      +- RMIXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
      +- jmx:ERTU:rmi (class: org.jboss.jmx.adaptor.rmi.RMIAdaptorImpl)
      +- MenuItemCollectionBean (class: $Proxy51)
      +- topic (class: org.jnp.interfaces.NamingContext)
      | +- example (class: org.jboss.mq.SpyTopic)
      | +- testTopic (class: org.jboss.mq.SpyTopic)
      | +- bob (class: org.jboss.mq.SpyTopic)
      +- queue (class: org.jnp.interfaces.NamingContext)
      | +- D (class: org.jboss.mq.SpyQueue)
      | +- C (class: org.jboss.mq.SpyQueue)
      | +- B (class: org.jboss.mq.SpyQueue)
      | +- A (class: org.jboss.mq.SpyQueue)
      | +- controlQueue (class: org.jboss.mq.SpyQueue)
      | +- testQueue (class: org.jboss.mq.SpyQueue)
      | +- ex (class: org.jboss.mq.SpyQueue)
      | +- DLQ (class: org.jboss.mq.SpyQueue)
      | +- F (class: org.jboss.mq.SpyQueue)
      | +- E (class: org.jboss.mq.SpyQueue)
      +- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
      +- RMIConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
      +- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
      +- local (class: org.jnp.interfaces.NamingContext)
      | +- SequenceSessionBean (class: com.proventek.publ.sequencegenerator.interfaces.SequenceSessionLocalHome)
      | +- SequenceBean (class: com.proventek.publ.sequencegenerator.interfaces.SequenceLocalHome)
      | +- MenuItemBean (class: com.proventek.publ.menu.interfaces.MenuItemLocalHome)
      +- invokers (class: org.jnp.interfaces.NamingContext)
      | +- MenuItemCollectionBean (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      | +- ejb (class: org.jnp.interfaces.NamingContext)
      | | +- mgmt (class: org.jnp.interfaces.NamingContext)
      | | | +- J2EEManagement (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      | | +- jmx (class: org.jnp.interfaces.NamingContext)
      | | | +- ejb (class: org.jnp.interfaces.NamingContext)
      | | | | +- Adaptor (class: org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker)
      +- ejb (class: org.jnp.interfaces.NamingContext)
      | +- mgmt (class: org.jnp.interfaces.NamingContext)
      | | +- J2EEManagement (class: $Proxy4)
      | +- jmx (class: org.jnp.interfaces.NamingContext)
      | | +- ejb (class: org.jnp.interfaces.NamingContext)
      | | | +- Adaptor (class: $Proxy1)
      +- UILXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
      +- UILConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)


      How shall I lookup my local beans, ie MenuItemBean, SequenceSessionBean and SequenceBean?

      All my beans is visible in the Global name space as you can see above.

      /Erik Turesson