Arjun Patil

Greenhorn
+ Follow
since Jun 17, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arjun Patil

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.