Configure the Outgoing Adaptor
32.4.4.1.2. Configuring the outgoing adaptor You will also need to configure the outbound connection by creating a hornetq-ds.xml and placing it under any directory that will be deployed under the deploy directory. In a standard HornetQ jboss configuration this would be under horneq or hornetq.sar but you can place it where ever you like. Actually as long as it ends in -ds.xml you can call it anything you like. You can again find a template for this file under the config directory of the HornetQ distribution but called jms-ds.xml which is the jboss default. The following example shows a sample configuration RemoteJmsXA hornetq-ra.rar org.hornetq.ra.HornetQRAConnectionFactory javax.jms.Topic org.hornetq.core.remoting.impl.netty.NettyConnectorFactory host=127.0.0.1;port=5446 20 Again you will see that this uses the netty connector type and will connect to the HornetQ server running on localhost and listening on port 5446. JEE components can access this by using JNDI and looking up the connection factory using JNDI using java:/RemoteJmsXA, you can see that this is defined under thejndi-name attribute. You will also note that the outgoing connection will be created by the resource adaptor configured under the directory hornetq-ra.rar as explained in the last section.