If a logical connection has already been obtained, client should disallow XAConnection getConnection if a global transaction has been started and a logical connection has already been obtained
With the client the script below does not give an error.
ij> connect 'wombat;create=true';
ij> xa_datasource 'wombat';
ij> xa_connect user 'APP' password 'xxx';
Connection number: 3.
ij> – start new transaction
xa_start xa_noflags 0;
ij> – Should not be able to get connection again
With embedded we get.
ERROR XJ059: Cannot close a connection while a global transaction is still active.