Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-318

Transaction demarcated accross multiple threads...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 2.1.5
    • None
    • Core
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adamb Adam Berry
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: