Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.1.4
-
None
-
None
-
None
-
Windows 2000, Sun JDK 1.6.0_07
Description
Access from a remote client to the URL
failover:random:ejbd://localhost:10100,ejbd://localhost:10110
fails because of the implementation of org.apache.openejb.client.RandomConnectionStrategy.connect() in openejb-client-3.1.4.jar
In RandomConnectionStrategy:40 we find
List<URI> available = Arrays.asList(locations);
This list does not implement the remove() operation. Thus the call of remove() in line 60 fails. It's interesting to see that removeAll() is implemented (by inheritance and delegation to Iterator.remove()).
The strategies 'sticky' and 'round robin' wrap the list in a LinkedHashSet so that the problem does not occur there.