3 Replies Latest reply on Aug 12, 2010 3:05 AM by jaikiran

    Hornetq port configuration in jboss-6.0.0.20100721-M4

    yongz

      Hi,

       

      I noticed that group address and port are hard coded in hornetq-configuration.xml:

       

         <broadcast-groups>
            <broadcast-group name="bg-group1">
               <group-address>231.7.7.7</group-address>
               <group-port>9876</group-port>
               <broadcast-period>5000</broadcast-period>
               <connector-ref connector-name="netty"/>
            </broadcast-group>
         </broadcast-groups>
         <discovery-groups>
            <discovery-group name="dg-group1">
               <group-address>231.7.7.7</group-address>
               <group-port>9876</group-port>
               <refresh-timeout>10000</refresh-timeout>
            </discovery-group>
         </discovery-groups>

       

      Is it possible to define these address/port as parameters passed to the JBoss Run Scripts, similar to the way with jboss messaging in jboss 5?

       

      In this case, there will be no need to change hornetq-configuration.xml for different address or port. Thanks.

        • 1. Re: Hornetq port configuration in jboss-6.0.0.20100721-M4
          yongz

          Sorry, not sure how to quote a XML fragment in the post, no preview before post, no edit option afterwards in the original post.

           

          Try again:

           

             <broadcast-groups>
                <broadcast-group name="bg-group1">
                   <group-address>231.7.7.7</group-address>
                   <group-port>9876</group-port>
                   <broadcast-period>5000</broadcast-period>
                   <connector-ref connector-name="netty"/>
                </broadcast-group>
             </broadcast-groups>
           
             <discovery-groups>
                <discovery-group name="dg-group1">
                   <group-address>231.7.7.7</group-address>
                   <group-port>9876</group-port>
                   <refresh-timeout>10000</refresh-timeout>
                </discovery-group>
             </discovery-groups>
          
          • 2. Re: Hornetq port configuration in jboss-6.0.0.20100721-M4
            jaikiran

            Yong Zhang wrote:

             

            Sorry, not sure how to quote a XML fragment in the post

             

            Yes, the editor is sometimes messy. But using the syntax highlighter (like you did in your recent post) should fix it (although it has its own set of issues).

             

            Yong Zhang wrote:

             

            no preview before post

            One more of the known usability issues in the forum editor.

             

            Yong Zhang wrote:

             

            no edit option afterwards in the original post.

             

            Hehe. To make things interesting, the forum software has a "Edit" link/button at the top left of the page to edit the first post in the topic. To edit the rest of the posts, the "Edit" button appears just below each post on the bottom right.

            • 3. Re: Hornetq port configuration in jboss-6.0.0.20100721-M4
              jaikiran

              Yong Zhang wrote:

               

              Hi,

               

              I noticed that group address and port are hard coded in hornetq-configuration.xml:

              ...

              Is it possible to define these address/port as parameters passed to the JBoss Run Scripts, similar to the way with jboss messaging in jboss 5?

               

              In this case, there will be no need to change hornetq-configuration.xml for different address or port. Thanks.

              There's a JIRA for that https://jira.jboss.org/browse/JBAS-8026