bluru2 wrote:
hi, all
can close the database Connection before the JTA transaction commit or rollback?
my understanding:
if the connection not come from connection pool. i think this must be a issue, but if Connection come from pool, the close method just return it to pool, but due to multithread environment, the connection maybe can be used immediately by another thread, but the the previous transaction still not commit or rollback, but the connection aleady service for other service(maybe into another transaction), i think
this will produce an unexpected result.
i can't confirm my understanding, i aleady be confused , please help me!
thanks
regards
not quite understand u by producing an unexpected result with reusing the released connection. i think when a connection is released to the pool, all objects/status related to this connection are cleared and no longer exist