• Post Reply Bookmark Topic Watch Topic
  • New Topic

stateful session bean instance removal

 
binu sukumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, all
I am using stateful session beans (with weblogic server) in my project. As per ejb documents, whenever a system exception is thrown from the bean, the bean instance gets removed. So, I need to create the bean again from the client. If any of you know, what are these 'system exceptions', that cause the stateful bean instance to be removed, please let me know.
thanks.
 
Steve Snodgrass
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe a system exception would be any exception which is not listed in the throws clause of the EJB method.
 
anup vachali
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EJB 1.1, an application exception is any exception that does not extend java.lang.RuntimeException or the java.rmi.RemoteException. System exceptions are java.lang.RuntimeException and java.rmi.RemoteException types and subtypes, including EJBException.
Transactions are automatically rolled back if a system exception is thrown from a bean method. Transactions are not automatically rolled back if an application exception is thrown.
Thanks
Anup
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!