BTM
  1. BTM
  2. BTM-10

Race condition in connection pools when lazily initialized

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.3
    • Labels:
      None
    • Number of attachments :
      0

      Description

      PoolingConnectionFactory and PoolingDataSource might get initialized multiple times if you don't call init() manually and access them from multiple theads.

      See: http://www.nabble.com/Initializing-JMS-PoolingConnectionFactory-and-multi-threading-to16003707.html

        Activity

        Hide
        Ludovic Orban added a comment -

        Fixed by marking init() method on both classes as synchronized.

        Show
        Ludovic Orban added a comment - Fixed by marking init() method on both classes as synchronized.

          People

          • Assignee:
            Ludovic Orban
            Reporter:
            Ludovic Orban
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: