5 Replies Latest reply on Apr 4, 2002 8:22 AM by Andrew Samsonov

    Lookup problem with local interfaces

    Andrew Samsonov Newbie

      Hi folks,
      I have seen all topics in the forum about this problem.
      I try difference combination but can't get working results.
      My code is:
      InterestLocal interestLocal;
      InterestLocalHome home = (InterestLocalHome)jndiContext.lookup("local/Interest");
      interestLocal = home.create();

      This call I make from servlet.I'm using JBoss2.4.4-jakarta4.0.1
      My ear-jar.xml have next:
      <enterprise-beans>
      <session>
      <display-name>Interest</display-name>
      <ejb-name>Interest</ejb-name>
      <home>org.jboss.docs.interest.InterestHome</home>
      <remote>org.jboss.docs.interest.Interest</remote>
      <local-home>org.jboss.docs.interest.InterestLocalHome</local-home>
      <local>org.jboss.docs.interest.InterestLocal</local>
      <ejb-class>org.jboss.docs.interest.InterestBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Bean</transaction-type>
      </session>
      </enterprise-beans>

      web.xml is
      <ejb-local-ref>
      <ejb-ref-name>ejb/local/Interest</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home>org.jboss.docs.interest.InterestLocalHome</local-home>
      <local>org.jboss.docs.interest.InterstLocal</local>
      </ejb-local-ref>

      What's wrong, please help!
      Andrew