2 Replies Latest reply on Sep 28, 2012 3:37 AM by Radosław Szulgo

    Remove a SFSB in a transaction

    Radosław Szulgo Newbie

      How to remove a Statfull session bean in a method that runs in a transaction?

       

      An attempt to remove a session object while the object is in a transaction (EJB2.1, 7.6.4 Restrictions for Transactions) cause javax.ejb.RemoveException.

       

      I have a business method that creates a SFSB and just before a return it tries to remove that object. In JBoss 3.2.8.SP1 everything worked well, whereas in JBoss 5 the exception is thrown. How to resolve that?

       

      Thanks for any help,

      -- Radoslaw Szulgo

       

      // An attempt to remove a session object while the object is in a transaction (EJB2.1, 7.6.4 Restrictions for Trans