0 Replies Latest reply on Feb 8, 2010 4:31 PM by medlw

    JBoss Remoting in AS Cluster

    medlw

      I configured and deployed a simple Remoting Application into a 4.2.2 AS and run it successfully (below my mbean-definition).  I set up a 2-node cluster using the default cluster configuration by starting each server with "run -c all" (having prooved that the node did recognise each other). Then I ran over some seconds hundreds of calls in different threads using different connections. Only the Server which is contained in thelocatorUrl did respond. Principally what do I have to do to run the JBoss Remoting in a cluster and observe some sort of load balancing?

      Do II have to use a special connector or transport?

       

      Her the simple mbean definition:

      <server>

       

      <mbean code="org.jboss.remoting.transport.Connector"
      name="jboss.remoting:service=Connector,transport=Socket"
      display-name="Socket transport Connector">
      <attribute name="InvokerLocator">
      <![CDATA[socket://localhost:5400]]>
      </attribute>
      <attribute name="Configuration">
      <config>
      <handlers>
      <handler subsystem="cluster">medl.remoting.cluster.server.SimpleInvocationHandler</handler>
      </handlers>
      </config>
      </attribute>
      </mbean>
      </server>

       

      Thanks in advance