Subject | Firebird connections are closed twice in JBoss 5.1 |
---|---|
Author | Doychin |
Post date | 2010-08-19T13:04:20Z |
I'm using jBoss 5.1 and Jaybird 2.1.6
when I define my data connection as xa-datasource I get the following exception:
IllegalStateException with message "Cannot execute desired operation because pooled connection has invalid state."
The reason is that when connection is closed by JBoss pool internalClose method is called twice.
First when connection is deallocated from the pool and second when xa connection is closed from JBoss code.
Any idea how to avoid this?
When this exception is raised connection is not removed from pools and when container tries to allocate new connection it gets this invalid connection. The result is that call that tried to get this connection generates exception.
Doychin Bondzhev
when I define my data connection as xa-datasource I get the following exception:
IllegalStateException with message "Cannot execute desired operation because pooled connection has invalid state."
The reason is that when connection is closed by JBoss pool internalClose method is called twice.
First when connection is deallocated from the pool and second when xa connection is closed from JBoss code.
Any idea how to avoid this?
When this exception is raised connection is not removed from pools and when container tries to allocate new connection it gets this invalid connection. The result is that call that tried to get this connection generates exception.
Doychin Bondzhev