How to make EJB's Clustered in JBoss EAP 6?

Solution Verified - Updated -

Issue

  • How to configure a clustered EJB in JBoss EAP 6?
  • How to invoke a clustered EJB with a remote client?
  • Are additional cluster members automatically detected if EJB's are invoked from a remote client?
  • How to deploy an EJB application in clustered mode?
  • How to create EJB Session Replication application in JBoss EAP 6?
  • We have two JBoss EAP 6.2.4.GA servers in standalone-full mode (server1 and server2). Both servers expose an EJB.

We have another JBoss EAP 6.3.0.GA server in standalone-full mode that use EJB Client API to consume the EJB from server1 and server2.

Everything works fine. The calls to the EJB are balanced.

While We are constantly calling the EJB We restart the server1 (or the server2) and It is never called again.

What should be done to make server1 (or server2) as an eligible node again when the client calls the EJB?

Our jboss-ejb-client.xml contains:

<jboss-ejb-client xmlns="urn:jboss:ejb-client:1.2">
    <client-context invocation-timeout="5000">
        <ejb-receivers exclude-local-receiver="true">
            <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection-server1" connect-timeout="7000">
            </remoting-ejb-receiver>
            <remoting-ejb-receiver outbound-connection-ref="remote-ejb-connection-server2" connect-timeout="7000">
            </remoting-ejb-receiver>
        </ejb-receivers>
    </client-context>
</jboss-ejb-client>

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content