[jboss-user] [JCA/JBoss] - Re: datasource from log4j appender
adrian@jboss.org
do-not-reply at jboss.com
Tue Apr 28 05:41:38 EDT 2009
You can't use the local-tx-datasource because it will inherit the transaction from the ejb context.
In the stacktrace you show, the jta tranaction has already been aborted so it can't log
(write things into the database).
Even If it wasn't already aborted, a subsequent rollback of the transaction would mean
nothing gets logged.
Also, you certainly can't set auto commit to false on a transactional
datasource that is enlisted in a transaction like you have.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4227218#4227218
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4227218
More information about the jboss-user
mailing list