[jboss-jira] [JBoss JIRA] (AS7-4174) Remote client failover does not work properly
Ondřej Chaloupka (JIRA)
jira-events at lists.jboss.org
Wed Mar 14 13:40:48 EDT 2012
[ https://issues.jboss.org/browse/AS7-4174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676853#comment-12676853 ]
Ondřej Chaloupka commented on AS7-4174:
---------------------------------------
Ouch, you're right, I'm sorry. I have overlooked this setting in that test. Thanks.
> Remote client failover does not work properly
> ---------------------------------------------
>
> Key: AS7-4174
> URL: https://issues.jboss.org/browse/AS7-4174
> Project: Application Server 7
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 7.1.1.Final
> Reporter: Ondřej Chaloupka
> Assignee: jaikiran pai
> Labels: client, ejb
> Attachments: myejb.jar, myejbclient.jar
>
>
> It seems that remote client failover does not work properly. I have two servers connected in cluster where a stateful bean is deployed.
> My steps are following:
> 1) Start both servers
> 2) Run client. Client connects to server1 and lookups the stateful bean there. Client still runs and possess proxy of bean.
> 3) Kill server1
> 4) Let client invoke a method on bean remotely.
> I would suppose that client should be routed to server2 and it should get a response. But client fails with timeout with
> {code}
> Exception in thread "main" java.lang.IllegalStateException: No EJB receiver contexts available in cluster ejb
> {code}
> You can check my client: https://github.com/ochaloup/testing/blob/master/myejbclient/src/client/ClientStateful.java
> and the stateful bean:
> https://github.com/ochaloup/testing/blob/master/myejb/ejbModule/ochaloup/StatefulBean.java
> https://github.com/ochaloup/testing/blob/master/myejbclient/src/jboss-ejb-client.properties
> I run servers like:
> bin/standalone.sh -c=standalone-ha.xml -Djboss.node.name=clust1
> bin/standalone.sh -c=standalone-ha.xml -Djboss.socket.binding.port-offset=100 -Djboss.node.name=clust2
> client is run by command:
> java -cp myejbclient.jar:$JBOSS_HOME/build/target/jboss1/bin/client/jboss-client.jar client.ClientStateful
> (the jar files will be attached)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list