Subject | Exceptioin when using connection in distributed transaction in Java Application server |
---|---|
Author | |
Post date | 2014-09-18T09:03:34Z |
Hi,
This exception I get when I try to close connection that I get from a Datasource that I lookup from JNDI.
I use
try {
// Some code that uses connection
} finally {
connection.close();
}
11:58:47,160 ERROR [STDERR] Caused by: org.firebirdsql.jdbc.FBSQLException: Connection enlisted in distributed transacti
on
11:58:47,160 ERROR [STDERR] at org.firebirdsql.jdbc.AbstractConnection.setAutoCommit(AbstractConnection.java:436)
11:58:47,160 ERROR [STDERR] at org.firebirdsql.jdbc.AbstractConnection.close(AbstractConnection.java:566)
11:58:47,160 ERROR [STDERR] at com.dsoft.framework.enterprise.session.LoginManagerBean.initializeAdminAccount(LoginM
anagerBean.java:164)
11:58:47,160 ERROR [STDERR] ... 162 more
This exception I get when I try to close connection that I get from a Datasource that I lookup from JNDI.
I use
try {
// Some code that uses connection
} finally {
connection.close();
}
11:58:47,160 ERROR [STDERR] Caused by: org.firebirdsql.jdbc.FBSQLException: Connection enlisted in distributed transacti
on
11:58:47,160 ERROR [STDERR] at org.firebirdsql.jdbc.AbstractConnection.setAutoCommit(AbstractConnection.java:436)
11:58:47,160 ERROR [STDERR] at org.firebirdsql.jdbc.AbstractConnection.close(AbstractConnection.java:566)
11:58:47,160 ERROR [STDERR] at com.dsoft.framework.enterprise.session.LoginManagerBean.initializeAdminAccount(LoginM
anagerBean.java:164)
11:58:47,160 ERROR [STDERR] ... 162 more
Is there anything I can do to avoid this?