2 Replies Latest reply on Apr 11, 2008 4:36 AM by Rabbia Qaswar

    SessionBeans referring each other locally

    Rabbia Qaswar Newbie


      I am using Enterprise Java Beans (EJB) 3.0 (jdk 1.5), the application serer is Jboss 4.2.2 GA.

      In the application, there are two Stateless SessionBeans (BankSessionBean & UserSessionBean) in same jar file referring to same PersistenceContext. Both of these session beans have their local and remote interfaces. Now in BankSessionBean i am locally referring to UserSessionBean.

      UserSessionBeanLocal userSessionBean;

      and in UserSessionBean i am locally referring to BankSessionBean instead of remote lookup.
      BankSessionBeanLocal bankSessionBean;

      But when i deploy the jar file, it is not successfully deployed. Earlier i was only referring to UserSessionBean from BankSessionBean and the jar was deployed successfully.

      What can I do to resolve this problem?