0 Replies Latest reply on Apr 22, 2011 10:05 AM by totoranky

    ra.xml configuration to reach hornetQ cluster

    totoranky

      Hi everybody,

       

      I want to reach a cluster from a mdb.My configuration works fine to reach a stand-alone hornetq from a JBoss server with hornetq-ra.rar deployed in my JBoss instance. Now I am setting up a clustered hornetQ, so I would like to know how can I configure my ra.xml in the hornetQ-ra.rar archive.

       

      In this file I saw these properties :

       

      <config-property>

              <description>The discovery group address</description>

              <config-property-name>DiscoveryGroupAddress</config-property-name>

              <config-property-type>java.lang.String</config-property-type>

              <config-property-value>host=231.7.7.7</config-property-value>

      </config-property>

       

      <config-property>

              <description>The discovery group port</description>

              <config-property-name>DiscoveryGroupPort</config-property-name>

              <config-property-type>java.lang.Integer</config-property-type>

              <config-property-value>9876</config-property-value>

      </config-property>

       

      I tried to put my cluster host and port, but when I start JBoss, I have this error

      .NoSuchMethodException: org.hornetq.ra.HornetQResourceAdapter.setDiscoveryGroupAddress(java.lang.String))

       

      I want to know what can I do to connect my mdb on a cluster instead of a node of this cluster.

       

      Thanks for your help