Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
3.1.1
-
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.