[jboss-user] [EJB 3.0] - @Remove Annotation and Exceptions

JUnkie do-not-reply at jboss.com
Mon Nov 12 13:42:23 EST 2007


Hi,

I have a small merketplace and a shopping cart that is a Stateful Session Bean (SFSB). The order() method is annotated with @Remove. In only very few cases the items in the basket were bought by someone who was faster. Then I throw an Exception before the order can be created. 

BUT: How can I avoid that the SFSB is removed in these cases?

I have tried it with Exceptions, RuntimeExceptions, @ApplicationException annoted Exceptions but nothing helps. The SFSB is ALWAYS removed.

Any suggestions?


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

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



More information about the jboss-user mailing list