0 Replies Latest reply on Jan 10, 2012 1:42 PM by Ruben Faelens

    FacesRenderer exceptions cancel transaction?

    Ruben Faelens Newbie

      I have a very simple testing scenario where I want to send a mail upon a user actions, after which I call entityManager.flush(). EntityManager is a seam-managed entity manager (Conversation-scoped).


      EntityManager.flush() fails with a TransactionRequiredException. The reason this fails, is because the renderer.render() method has ended the transaction (the XHTML page failed to render with an exception).


      Even if I catch this exception and swallow it, the transaction gets cancelled. Is this a bug or is this legitimate behavior? Can I avoid this?