문제

I am migrating project from Weblogic 10.3 to Weblogic 12c.I have an MDB which reference another EJB (EJB 2.1) as below.

   <ejb-local-ref>
      <ejb-ref-name>ejb/WorkerSBLocalHome</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      <local-home>test.WorkerSBLocalHome</local-home>
      <local>test.WorkerSBLocal</local>
     <ejb-link>WorkerEJB.jar#WorkerSB</ejb-link>
   </ejb-local-ref>

Getting below exception

   You must set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor or corresponding annotation for this EJB before it can be deployed.

EDIT : The Weblogic's weblogic-ejb-jar.xml has local-jndi-name and it is getting registered in Weblogic JNDI tree

도움이 되었습니까?

해결책

Removal of local-jndi-name from weblogic-ejb-jar.xml and put below for lookup

   java:comp/env/ejb 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top