Discussions

EJB design: web client connect localy to Sesssion Bean

  1. web client connect localy to Sesssion Bean (2 messages)

    I've created a web Client (jsp) and try to connect to a Session Bean on a local way.
    What should a do to get it work ?
    I've tryed configuration in web.xml, ejb-jar.xml and weblogic-ejb-jar.xml but get a lot of error (no local key-word used in dtd, missing link, and so on..)
  2. In your EJB-JAR file, make sure that for the session bean you have defined a local and local-home interface.
  3. local and local-home interface.[ Go to top ]

    thanks for the response. I think, yes.
    Here's the code:

     <session >
             <description><![CDATA[]]></description>

             <ejb-name>UserMgr</ejb-name>

             <home>be.swisslife.mwp.security.ses.UserMgrHome</home>
             <remote>be.swisslife.mwp.security.ses.UserMgr</remote>
             <local-home>be.swisslife.mwp.security.ses.UserMgrLocalHome</local-home>
             <local>be.swisslife.mwp.security.ses.UserMgrLocal</local>
             <ejb-class>be.swisslife.mwp.security.ses.UserMgrSession</ejb-class>
             <session-type>Stateless</session-type>
             <transaction-type>Container</transaction-type>

          </session>