Hi,
I was trying out the feature which is documented in
http://docs.oracle.com/cd/E18930_01/html/821-2426/gknpv.html#scrolltoc but in
my test cluster all client calls where directed at one cluster instance
during the tests.
Looking at the source I found the following code snippet in v2 which seems
missing in v3?
POARemoteReferenceFactory.java
// Set per-request-load-balancing policy on ejb object
references
if( !home && extraDesc.hasPerRequestLoadBalancing() ) {
policies.add( new
LoadBalancingPolicy(ORBConstants.PER_REQUEST_LOAD_BALANCING));
logger.log(Level.FINE, "Setting
per-request-load-balancing policy " +
"for Ejb " +
ejbDescriptor.getName()); } For testing purposes I
tried to patch the orb-iiop.jar in v3 with this code but now I get a
StackOverflowError when trying to call a remote method:
java.lang.StackOverflowError
at java.util.LinkedList$ListItr.<init>(LinkedList.java:676)
at java.util.LinkedList.listIterator(LinkedList.java:667)
at java.util.AbstractList.listIterator(AbstractList.java:284)
at
java.util.AbstractSequentialList.iterator(AbstractSequentialList.java:222)
at
com.sun.corba.ee.impl.transport.CorbaContactInfoListIteratorImpl.hasNext(CorbaContactInfoListIteratorImpl.java:191)
at
com.sun.corba.ee.impl.transport.CorbaContactInfoListIteratorImpl.hasNext(CorbaContactInfoListIteratorImpl.java:194)
... I also found a JIRA but without any comments so far:
http://java.net/jira/browse/GLASSFISH-16715?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel
Regards
Bernd
--
[Message sent by forum member 'boernd']
View Post: http://forums.java.net/node/870072