Configure the Incoming Adaptor
32.4.4.1.1. Configuring the Incoming Adaptor Firstly you will need to create directory under the deploy directory ending in .rar. For this example we will name the directory hornetq-ra.rar. This detail is important as the name of directory is referred to by the MDB's and the outgoing configuration. Note The jboss default for this is jms-ra.rar, If you don't want to have to configure your MDB's you can use this but you may need to remove the generic adaptor that uses this. Under the hornetq-ra.rar directory you will need to create a META-INF directory into which you should create an ra.xml configuration file. You can find a template for the ra.xml under the config directory of the HornetQ distribution. To configure MDB's to consume messages from a remote HornetQ server you need to edit the ra.xml file under deploy/hornet-ra.rar/META-INF and change the transport type to use a netty connector (instead of the invm connector that is defined) and configure its transport params. Heres an example of what this would look like: org.hornetq.ra.HornetQResourceAdapter The transport type ConnectorClassName java.lang.String org.hornetq.core.remoting.impl.netty.NettyConnectorFactory The transport configuration. These values must be in the form of key=val;key=val; ConnectionParameters java.lang.String host=127.0.0.1;port=5446 This configures the resource adapter to connect to a server running on localhost listening on port 5446