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
As far as I know JBoss 4.0.x does not yet support deploying a persistence archive with WEB-INF/lib .
Its written in spec.