1 2 Previous Next 16 Replies Latest reply on Mar 22, 2012 6:12 AM by spangaer Go to original post
      • 15. Re: Hornetq2.2.2 client failed to create session factory to connect on server
        clebert.suconic

        The HornetQ server? Through the API only. You can define a variable like you had before and pass it with -D on startup

        • 16. Re: Hornetq2.2.2 client failed to create session factory to connect on server
          spangaer

          Working on an applicaton of which JBoss is a component so static IP is not an option. Luckily the JBoss team difined a hostname property in the dev cycle of 6.

          https://issues.jboss.org/browse/JBAS-7779

           

          This finally did it for us:

             <connectors>

                <connector name="netty">

                   <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>

                   <param key="host"  value="${jboss.host.name:localhost}"/>

                   <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>

                </connector>

               

                <connector name="netty-throughput">

                   <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>

                   <param key="host"  value="${jboss.host.name:localhost}"/>

                   <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>

                   <param key="batch-delay" value="50"/>

                </connector>

           

                <connector name="in-vm">

                   <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>

                   <param key="server-id" value="${hornetq.server-id:0}"/>

                </connector>

           

             </connectors>

           

             <acceptors>  

                <acceptor name="netty">

                   <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>

                   <param key="host"  value="${jboss.bind.address:localhost}"/>

                   <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>

                </acceptor>

               

                <acceptor name="netty-throughput">

                   <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>

                   <param key="host"  value="${jboss.bind.address:localhost}"/>

                   <param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/>

                   <param key="batch-delay" value="50"/>

                   <param key="direct-deliver" value="false"/>

                </acceptor>

           

                <acceptor name="in-vm">

                  <factory-class>org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory</factory-class>

                  <param key="server-id" value="0"/>

                </acceptor>

           

             </acceptors>

           

           

          If I understand what's going on here. With the connectors you configure the configuration remote clients get via JNDI.

          1 2 Previous Next