Hi,
I'm doing lookup for Stateful session EJB with EXTENDED persistance context from JSP..
code as follows...
<%
BandServiceRemote serviceRemote=null;
try{
InitialContext context=new InitialContext();
serviceRemote=(BandServiceRemote)context.lookup("Band#"+BandServiceRemote.class.getName());
}catch(Exception e){
System.out.println("Error accoured");
e.printStackTrace();
}
%>
i'm getting following exception during lookup...
"Caused by: java.lang.IllegalStateException: Extended Persistence Contexts can only be invoked from within the context of the stateful session bean that declares the Extended Persistence Context."
&, if i remove the Extended persistance context, then look happens successfully...
Can you guys help me in understanding what is going wrong???
thanks.