Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Invalid
-
2.1.5
-
None
-
None
Description
We are using iBATIS in the following way:
send the server a message which will do a SqlMap.startTransaction()
...
some time later
...
send the server a message which will do a SqlMap.<some sql operation>
...
If we set:
Pool.MaximumActiveConnections=1
Then we hit problems if the thread that does operations on the SqlMap is different to the thread which started the transaction
because
SqlMapClientImpl.getLocalSqlMapSession()
stores the session in a Threadlocal so it finds no session and attempts to automatically create a new one, but since the max connections has been reached it fails.