Configure Adapter Outbound
32.4.2. Adapter Outbound Configuration The outbound configuration should remain unchanged as they define connection factories that are used by Java EE components. These Connection Factories can be defined inside a configuration file that matches the name *-ds.xml. You'll find a default jms-ds.xml configuration under the hornetq directory in the JBoss AS deployment. The connection factories defined in this file inherit their properties from the main ra.xml configuration but can also be overridden. The following example shows how to override them. Note Please note that this configuration only applies when HornetQ resource adapter is installed in JBoss Application Server. If you are using another JEE application server please refer to your application servers documentation for how to do this. RemoteJmsXA jms-ra.rar org.hornetq.ra.HornetQRAConnectionFactory javax.jms.Topic org.hornetq.core.remoting.impl.netty.NettyConnectorFactory port=5445 20 In this example the connection factory will be bound to JNDI with the name RemoteJmsXA and can be looked up in the usual way using JNDI or defined within the EJB or MDB as such: @Resource(mappedName="java:/RemoteJmsXA") private ConnectionFactory connectionFactory; The config-property elements are what overrides those in the ra.xml configuration file. Any of the elements pertaining to the connection factory can be overridden here. The outbound configuration also defines additional properties in addition to the global configuration properties.