如何在初始查找时配置HA以与两个不同的集群上的两个不同的EJB进行通信?

时间:2017-03-03 15:21:08

标签: jboss ejb load-balancing rmi jboss-eap-6

我有这种情况:

  • 远程系统BE-TEST公开部署在两台JBoss EAP 6.3集群上的@Clustered ejb-Name-BE
  • 远程系统COMMON-TEST公开部署在两台JBoss EAP 6.3集群上的@Clustered ejb-name-Test
  • 一个客户端系统,也部署在JBoss EAP 6.3 clester上,需要从一个EAR调用两个远程EJB

问题是:

  • 如何配置jboss-ejb-client.xml来处理有关两个不同且独立的EJB的HA?

我按照这里可以找到的指示:https://access.redhat.com/solutions/136963

在客户端上,我已经像这样配置了standalone-ha.xml:

<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-receivers标签中混合两组不同的连接?

<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如何认识到它们是两个不同的集群?

再见,谢谢

0 个答案:

没有答案
相关问题