I have a scenario like this:
- The BE-TEST remote system provides @Clustered ejb-Name-BE deployed on two JBoss EAP 6.3 cluster machines
- The remote COMMON-TEST system provides @Clustered ejb-name-Test deployed on two JBoss EAP 6.3 cluster machines
- A client system also deployed on JBoss EAP 6.3 clester, which should call as remote EJBs from one EAR
Question:
- How do I configure jboss-ejb-client.xml to handle HA on two different and independent EJBs?
I followed the readings that can be found here: https://access.redhat.com/solutions/136963
On the client, I configured standalone ha.xml as follows:
<remote-outbound-connection name="remote-ejb-BE-TEST-A" outbound-socket-binding-ref="ejb-Name-BE-A" ...>
<remote-outbound-connection name="remote-ejb-BE-TEST-B" outbound-socket-binding-ref="ejb-Name-BE-B" ...>
<remote-outbound-connection name="remote-ejb-COMMON-TEST-A" outbound-socket-binding-ref="ejb-name-Test-A" ...>
<remote-outbound-connection name="remote-ejb-COMMON-TEST-B" outbound-socket-binding-ref="ejb-name-Test-B" ...>
.
<outbound-socket-binding name="ejb-Name-BE-A">
<remote-destination host="BE-A" port="4447"/>
</outbound-socket-binding>
<outbound-socket-binding name="ejb-Name-BE-B">
<remote-destination host="BE-B" port="4447"/>
</outbound-socket-binding>
<outbound-socket-binding name="ejb-name-Test-A">
<remote-destination host="Test-A" port="4447"/>
</outbound-socket-binding>
<outbound-socket-binding name="ejb-name-Test-B">
<remote-destination host="Test-B" port="4447"/>
</outbound-socket-binding>
jboss-ejb-client.xml?
ejb-?
<jboss-ejb-client xmlns="urn:jboss:ejb-client:1.2">
<client-context>
<ejb-receivers>
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-BE-TEST-A" />
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-BE-TEST-A" />
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-COMMON-TEST-A" />
<remoting-ejb-receiver outbound-connection-ref="remote-ejb-COMMON-TEST-A" />
</ejb-receivers>
JBoss , ?