0 Replies Latest reply on Nov 20, 2012 7:46 AM by crytek

    Cannot create connector from CLI command

    crytek

      Hello,

       

      I want to create a connector from the CLI for hornetQ inside Jboss As 7.

       

      This is how I want to look like:

       

      <connector name="remote-connector">

      <factory-class>

      org.hornetq.core.remoting.impl.netty.NettyConnectorFactory

      </factory-class>

      <param key="port" value="5446"/>

      </connector>

       

      And the second step, I want to create a remote adaptor for hornetq using that connector so that it looks like:

       

      <pooled-connection-factory name="hornetq-ra-remote">

                              <transaction mode="xa"/>

                              <connectors>

                                  <connector-ref connector-name="remote-connector"/>

                              </connectors>

                              <entries>

                                  <entry name="java:/RemoteJmsXA"/>

                              </entries>

      </pooled-connection-factory>

       

      I've tried to create the connector, but I can't figure it out. The CLI docs doesn't help too much.

       

      /subsystem=messaging/hornetq-server=default/connector=my-connector:add(param=?, factory-class="org.hornetq.core.remoting.impl.netty.NettyConnectorFactory"  ...   

       

      And for the resource-adapter,

       

      /subsystem=messaging/hornetq-server=default/pooled-connection-factory=hornetq-ra-remote:add(transaction=xa, connector=remote-connector ?  ... )

       

      Does somebody knows how to configure theste two items from the CLI ... ?

      Thanks in advance,