|
[
Permalink
| « Hide
]
Roman Rokytskyy added a comment - 31/Dec/08 02:12 PM
Can you describe your configuration? I.e. how did you configure the Glassfish, etc. In general it should be possible to close the connection in a finally block, and in this case connection will be returned back to the pool...
I deployed a connection pool with the following settings:
Datasource classname: org.firebirdsql.pool.sun.AppServerXADataSource Resource Type: javax.sql.XADataSource Pool-size: 8 - 64 databaseName: //localhost:3050/C:\development\projects\stuff\xxxx.FDB userName: SYSDBA JDBC30DataSource: true type: TYPE4 password: masterkey The datasource is looked up by an POJO class via JNDI which lives inside an stateles EJB (in this case I don't use dependency injection). Inside the class some SELECT-statements are executed and the connection is closed in a finally block. This szenario gives the same errors like described in JDBC 86. When I remove the code for closing the connection, it runs without problems, but I don't really feel good with this workaround because the same code is also used outside an JEE container. It doesn't matter if I use the XA driver or the usual pooling driver. The only driver which works is the org.firebirdsql.pool.sun.AppServerDataSource. That's why I assume, that the connection is not returned to the pool when it is closed. When I use the resource adapter (I deployed the RAR into glassfish) and use it as a datasource with XA transactions, it also runs without problems. Resolved by
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||