Subject Re: [Firebird-Java] Problems with FBXaDataSource in ApplicationServer
Author Mark Rotteveel
On 4-3-2014 21:13, David Jencks wrote:
> It's been about 10 years since I worked with jboss (or firebird)…. but are you sure you have configured the jboss connection management to use the xa capabilities?

The problem is that when FBManagedConnection receives the end() with
TMFAIL, it immediately rolls back the connection (which looking at the
XA specification is allowed). When the transaction manager subsequently
calls rollback() and the FBManagedConnection this causes an exception as
the transaction has already been rolled back and is no longer associated
with a connection.

I am still looking into it, but either I need to defer the rollback or
throw an exception with a specific XA errorcode (eg RBROLLBACK or
something).

Note that the exception is only a warning in the JBoss log, so possibly
JBoss is being thorough.

Mark
--
Mark Rotteveel