[jboss-user] [JBoss AOP] - Re: intercept TransactionManager->commit()
flavia.rainone
do-not-reply at jboss.com
Wed Dec 6 12:09:18 EST 2006
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
More information about the jboss-user
mailing list