[jboss-jira] [JBoss JIRA] (AS7-4174) Remote client failover does not work properly

jaikiran pai (JIRA) jira-events at lists.jboss.org
Wed Mar 14 13:21:48 EDT 2012


    [ https://issues.jboss.org/browse/AS7-4174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676835#comment-12676835 ] 

jaikiran pai commented on AS7-4174:
-----------------------------------

This looks like a configuration issue. The jboss-ejb-client.properties is missing the necessary connection configuration for the nodes in the EJB cluster named "ejb". As a result no EJB receiver is available in that cluster context and that'll result in the exception you are seeing. 

We have a working failover testcase here https://github.com/jbossas/jboss-as/blob/master/testsuite/integration/clust/src/test/java/org/jboss/as/test/clustering/cluster/ejb3/stateful/remote/failover/RemoteEJBClientStatefulBeanFailoverTestCase.java.

I'm marking this as not a bug. If you still run into issues with the correct config, feel free to re-open with the details.

                
> 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