Are you in a ejb environment? If so the easiest way is to the work that you need to commit immediatly in a ejb3 SLSB with a method annotatated @TransactionAttribute(REQUIRES_NEW)
I'm in JBOSS5. Using seam managed session factory. Should it still work?
BTW: I've tried to put this annotation on my saving method, it doesn't makes any difference.
I'd also mention that my component is not a slsb, it's defined as a @Scope(ScopeType.APPLICATION) for what it matters...
Isn't there a
seam wayto perform nested transaction?
Have you looked at using BMT? Handling the begin/commit of the tx yourself but not sure if it's possible w/o EJB unless you use Hibernate API...