It is not possible to intercept javax.transaction.TransactionManager, since, in 
this case, you want to intercept the execution of commit.
But TransactionManager is an interface, and does not have a commit body to be 
intercepted.
So, if you wanted to do this, you would need to intercept a specific class, 
whose name you don't know, of the application server you're using. But, to 
intercept the execution of this class' commit method, you would need security 
permission to do that.

This means that you can't do this with AOP.

But can't you use the hooks on javax.ejb.SessionSynchronization interface?

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991715
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to