1 Reply Latest reply on Feb 13, 2007 1:52 AM by bhupesh ravish

    placing ejb 3 session bean inside WAR

    Massive Boisson Newbie

      Hi all,

      I have a jsp inside a WAR file, trying to access ejb3 session bean inside WAR as well (WEB-INF/classes) all placed inside an EAR which in turn contains persistence.xml. Jsp looks it up from JNDI as "MySessionBean/local". It all works if session bean is deployed inside (ejb)jar file. But the way I need it - from war, it doesn't.

      Exception I get is: javax.naming.NameNotFoundException: MySessionBean not bound.

      So "all" I need is to bind the session bean (for which I have Local interface) to that name. But I don't have a clue how and where. And my attempts at guessing were unsuccessful.

      Could someone please suggest something, anything?

      Very thankfully,

      --MB