Ok, I was not quite correct.  I could register a Synchronization instance with 
javax.transaction.Tramsaction, or I could have my session beans implement 
SessionSynchronization.  

However I don't see an equivalent "MessageDrivenSynchronization" capability for 
MDBs.

My experience of registering against javax.transaction.Transaction is that 
other infrastructure components do the same, and that the order of invocation 
of afterCompletion(boolean) is non-deterministic.  The problem comes when an 
infrastructure component treats afterCompletion() as the place where it will do 
its own commit work.  So my Synchronization instance is often called BEFORE all 
the commit work has been done.

Is the Synchronization interface conceptually missing another entrypoint?  We 
have one for before-commit, one for after-completion, but none for commit-now, 
so some adaptors use after-completion for that purpose....

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874533#3874533

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874533


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to