This content has been marked as final.
Show 2 replies
-
1. Re: Re-open session or presistence after exception
jcg3.seam-forums.jcg3.org Dec 7, 2009 4:42 PM (in response to enda)Did you ever find a resolution for this? I'm looking at the same problem right now...
The only thing I can think of is to create another method that starts a new transaction, but not sure if that will work...
@TransactionAttribute(TransactionAttributeType.REQUIRES NEW)
public void persistError( ErrorRecord e ) {
em.persist( e );
}I could also plop the error record on a jms queue, but neither of these solutions really strike me as the way this problem should be solved...
Separate, unrelated question, why does the wiki formatting fail when I have an underscore in the
REQUIRES NEW
, and why does that prevent me from posting my response? -
2. Re: Re-open session or presistence after exception
enda Dec 7, 2009 9:29 PM (in response to enda)My friend would say how much will you pay ;) haha..
But I am better. Even that I spent 16 hours on it ;(
it is really easy
Transactions.instance().rollback(); Transactions.instance().begin();
Cheers
Tom