UnsupportedOperationException in RandomConnectionStrategy.connect()
-------------------------------------------------------------------

                 Key: OPENEJB-1412
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1412
             Project: OpenEJB
          Issue Type: Bug
    Affects Versions: 3.1.4
         Environment: Windows 2000, Sun JDK 1.6.0_07
            Reporter: Christian Koppen


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to