1 Reply Latest reply on Jun 20, 2002 3:05 PM by Adrian Brock

    Local Interface - EJBLocalObject

    Piet Theron Newbie

      Hi

      Does anybody have a simple example on how to deploy a local interface session bean - I'm using the jboss-3.0.0_tomcat-4.0.3 bundle and j2sdk1.4.

      The bean deploy OK but when i do the JNDI lookup from another session bean, remote, then it throws an exception:
      javax.naming.NameNotFoundException: LocalHelloBean not bound
      This is what the deployment descriptor looks like:
      <?xml version="1.0"?>

      <ejb-jar>
      <description>no description</description>
      <display-name>HelloBeanJAR</display-name>
      <enterprise-beans>
      <session>
      <description>HelloBeanDesc</description>
      <display-name>HelloBean</display-name>
      <ejb-name>HelloBean</ejb-name>
      <home>myEjb.HelloHome</home>
      <remote>myEjb.HelloRemote</remote>
      <ejb-class>myEjb.HelloBean</ejb-class>
      <session-type>Stateful</session-type>
      <transaction-type>Container</transaction-type>
      </session>

      <session>
      <description>LocalBeanDesc</description>
      <display-name>LocalHelloBean</display-name>
      <ejb-name>LocalHelloBean</ejb-name>
      <local-home>localEjb.HelloHome</local-home>
      <local>localEjb.HelloLocal</local>
      <ejb-class>localEjb.HelloBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
      <ejb-link>LocalHelloBean</ejb-link>
      </session>


      </enterprise-beans>

      </ejb-jar>
      Note: the bean is registered at the Agent View (port 8082) web page