0 Replies Latest reply on Nov 12, 2007 1:42 PM by Thomas Gerhards

    @Remove Annotation and Exceptions

    Thomas Gerhards Newbie

      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?