[jboss-user] [EJB/JBoss] - Re: Can I trace EJB *AND* JDBC transaction into 1 tracelog?

drabbit do-not-reply at jboss.com
Mon Oct 9 05:48:43 EDT 2006


something I've done a while ago was to write 2 interceptors that were placed around the jboss transaction interceptors and would put the name of the transaction and the status into the invocation payload and from that determine if the transaction was commited or rolled back.
When the invocation came back in the outer interceptor, then a name change of the transaction meant that the inner transaction was commited unless a RuntimeException was thrown or the status of the transaction in the inner interceptor was set to rollbackonly.

I'm sure you might also find a way to configure log4j to log all important transaction info, but that's the way I did it to monitor transactions.



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

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



More information about the jboss-user mailing list