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.