1 Reply Latest reply on Aug 24, 2004 1:12 PM by komone

    using Local interface from servlets

    echakine

      I am trying with no success to use local interface to get access to a session EJB from my Struts Web application...
      My version of JBoss is 3.2.5, both the web application and the ejb are in the same EAR. I have no problem using local interface for inter bean communication (it is quite natural) but when I try to access a bean from a web application only remote invocation is successful.
      The local invocation attempt leads to a ClassCastException.
      Maybe some kind of reference must be created in a jboss specific configuration file?
      Can anybody help? Thanks a lot ...

        • 1. Re: using Local interface from servlets
          komone

          And you have something like this...

          <ejb-local-ref>
           <ejb-ref-name>MyStatelessController</ejb-ref-name>
           <ejb-ref-type>Session</ejb-ref-type>
           <local-home>MyStatelessControllerLocalHome</local-home>
           <local>MyStatelessControllerLocal</local>
          </ejb-local-ref>
          ...not in jboss-web.xml but in your web.xml?

          hth
          /k1