[jboss-user] [JBoss Seam] - Re: Exceptions ending conversations

kahliburke do-not-reply at jboss.com
Thu Jan 17 16:43:28 EST 2008


It looks like your exception is defined to be a RuntimeException.  Is your PaService a stateful session bean?  RuntimeExceptions cause the component instance to be removed from the conversation by the RemoveInterceptor, if you are using a SFSB.  I believe this is to stay consistent with the J2EE specs, because it is assumed that an uncaught RuntimeException means that the bean is now in an undefined state.  

If you don't want a RuntimeException to cause this behavior, you need to annotate your exception class with @ApplicationException.

Let me know if this solves the issue or if it's something else.

Kahli Burke

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121115#4121115

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121115



More information about the jboss-user mailing list