[jboss-user] [Clustering/JBoss] - Re: Load-balance the invocation of a MBean in the cluster fr
bstansberry@jboss.com
do-not-reply at jboss.com
Tue Dec 9 16:42:09 EST 2008
Finally, the deployment descriptor:
| <?xml version="1.0" encoding="UTF-8"?>
|
| <server>
|
| <!-- Create JRMPHA proxy for the service that sends notifications -->
| <mbean code="org.jboss.proxy.generic.ProxyFactoryHA"
| name="jboss.test:service=ProxyFactory,name=HAService,protocol=jrmpha">
|
| <!-- Use the default partition -->
| <depends optional-attribute-name="PartitionObjectName">jboss:service=DefaultPartition</depends>
|
| <!-- Use the standard JRMPInvoker from conf/jboss-service.xml -->
| <depends optional-attribute-name="InvokerName">jboss:service=invoker,type=jrmpha</depends>
|
| <!-- The load balancing policy -->
| <attribute name="LoadBalancePolicy">org.jboss.ha.framework.interfaces.RoundRobin</attribute>
|
| <!-- The target MBean -->
| <depends optional-attribute-name="TargetName">jboss.test:service=HAService</depends>
|
| <!-- Where to bind the proxy -->
| <attribute name="JndiName">jmx/HAService</attribute>
|
| <!-- The interface exposed to the client -->
| <attribute name="ExportedInterface">org.jboss.test.jmx.ha.HAServiceRemote</attribute>
|
| <!-- Client side behaviour -->
| <attribute name="ClientInterceptors">
| <interceptors>
| <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
| <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
| </interceptors>
| </attribute>
| </mbean>
|
| <!-- Our service -->
| <mbean code="org.jboss.test.jmx.ha.HAService"
| name="jboss.test:service=HAService">
| <attribute name="SendRemoteLifecycleNotifications">false</attribute>
| </mbean>
|
| </server>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4195435#4195435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4195435
More information about the jboss-user
mailing list