Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1062

StickyConnectionStrategy incorrectly caches connections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.1.1
    • 3.1.2
    • connectors
    • None

    Description

      Test case:

      1. Create InitialContext (instance A) that connects to server 1. Lookup some bean there.
      2. Create another InitialContext (instance B) that connects to server 2.

      In fact on the step 2 InitialContext instance B is connected to server 1. Because of the following lines in the StickyConnectionStrategy:

      if (null != lastLocation && !failed.contains(lastLocation)) {
      return connect(lastLocation);
      }

      There is no check that server.getLocation() is equal to lastLocation.

      Attachments

        Activity

          People

            dblevins David Blevins
            infdok Dmitry Murashenkov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified