此内容没有您所选择的语言版本。
30.2.3. The HA HttpInvoker - Clustered RMI/HTTP Transport
The RMI/HTTP layer allows for software load balancing of the invocations in a clustered environment. An HA capable extension of the HTTP invoker has been added that borrows much of its functionality from the HA-RMI/JRMP clustering.
To enable HA-RMI/HTTP you need to configure the invokers for the EJB container. This is done through either a
jboss.xml
descriptor, or the standardjboss.xml
descriptor. Example 30.3, “A jboss.xml stateless session configuration for HA-RMI/HTTP” shows is an example of a stateless session configuration taken from the org.jboss.test.hello
testsuite package.
Example 30.3. A jboss.xml stateless session configuration for HA-RMI/HTTP
The
stateless-httpHA-invoker
invoker-proxy-binding references the jboss:service=invoker,type=httpHA
invoker service. This service would be configured as shown below.
The URL used by the invoker proxy is the
EJBInvokerHAServlet
mapping as deployed on the cluster node. The HttpInvokerHA
instances across the cluster form a collection of candidate http URLs that are made available to the client side proxy for failover and/or load balancing.