1 Reply Latest reply on May 7, 2013 6:15 AM by georgesg

    jboss 4.3 to jboss as 7.1.3 migration - jndi configuration in ejb-ref & ejb-local-ref  elements in web.xml

    georgesg

      Below are the snippets of ejb jndi configuration in jboss 4.3 and the change i tried for jboss EAP 6 AS 7.1.3 Final.  So what is the exact change to be done for AS 7.1.3 Final in the web.xml of the web application which is trying to lookup the ejb in the ejb module residing inside the same ear named "CMS.ear"

       

      Snippets from web.xml (from jboss 4.3) :


      <ejb-ref>

        <ejb-ref-name>ejb/com.cassis.cx.base.Dispatcher</ejb-ref-name>

        <ejb-ref-type>Session</ejb-ref-type>

        <home>com.cassis.cx.base.Dispatcher_Home</home>

        <remote>com.cassis.cx.base.Dispatcher_Remote</remote>

        <ejb-link>com.cassis.cx.base.Dispatcher</ejb-link>

      </ejb-ref>

      <ejb-local-ref>

        <ejb-ref-name>ejb/com.cassis.cx.config.Config</ejb-ref-name>

        <ejb-ref-type>Entity</ejb-ref-type>

        <local-home>com.cassis.cx.config.Config_LocalHome</local-home>

        <local>com.cassis.cx.config.Config_Local</local>

        <ejb-link>com.cassis.cx.config.Config</ejb-link>

      </ejb-local-ref>

       

      <ejb-local-ref>

        <ejb-ref-name>ejb/com.cassis.cx.decision.DEFacade</ejb-ref-name>

        <ejb-ref-type>Session</ejb-ref-type>

        <local-home>com.cassis.cx.decision.DEFacade_LocalHome</local-home>

        <local>com.cassis.cx.decision.DEFacade_Local</local>

        <ejb-link>com.cassis.cx.decision.DEFacade</ejb-link>

      </ejb-local-ref>

       

      Snippets from web.xml (After jndi change) :

       

      <ejb-ref>

        <ejb-ref-name>java:app/MobilematrixCX_ejb-1.0.0-SNAPSHOT/com.cassis.cx.base.Dispatcher!com.cassis.cx.base.Dispatcher_Home</ejb-ref-name>

        <ejb-ref-type>Session</ejb-ref-type>

        <home>com.cassis.cx.base.Dispatcher_Home</home>

        <remote>com.cassis.cx.base.Dispatcher_Remote</remote>

        <ejb-link>com.cassis.cx.base.Dispatcher</ejb-link>

      </ejb-ref>

      <ejb-local-ref>

        <ejb-ref-name>java:app/MobilematrixCX_ejb-1.0.0-SNAPSHOT/com.cassis.cx.config.Config!com.cassis.cx.config.Config_Home</ejb-ref-name>

        <ejb-ref-type>Entity</ejb-ref-type>

        <local-home>com.cassis.cx.config.Config_LocalHome</local-home>

        <local>com.cassis.cx.config.Config_Local</local>

        <ejb-link>com.cassis.cx.config.Config</ejb-link>

      </ejb-local-ref>

       

      <ejb-local-ref>

        <ejb-ref-name>java:app/MobilematrixCX_ejb-1.0.0-SNAPSHOT/com.cassis.cx.decision.DEFacade!com.cassis.cx.decision.DEFacade_LocalHome</ejb-ref-name>

        <ejb-ref-type>Session</ejb-ref-type>

        <local-home>com.cassis.cx.decision.DEFacade_LocalHome</local-home>

        <local>com.cassis.cx.decision.DEFacade_Local</local>

        <ejb-link>com.cassis.cx.decision.DEFacade</ejb-link>

      </ejb-local-ref>