[EMAIL PROTECTED] wrote:
> I am using stateless session beans. Each of the beans has one method that
> can be called from the client. If this method is involved in a transaction,
> the transaction
> commits when the method returns. Does this mean, I cannot return
> connections to the pool within each of these methods since the transaction
> will only terminate when each method returns?
No. It is just that after connection.close()
Minerva cannot really re-use the connection until
the transaction that it was used with (if any)
has also terminated.
When the connection is closed and the transaction
that it was used with has terminated (committed
or rolled back), Minerva should return the
connection to the pool.
The connection cannot be returned to the pool
until the transaction has finished because
Minerva should do a commit or rollback on the
real DB connection before it can be reused.
Best Regards,
Ole Husgaard.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]