Overview

This document describes the configuration of connection factories, i.e. TopicConnectionFactory , QueueConnectionFactory , XATopicConnectionFactory and XAQueueConnectionFactory instances.

Connection factories are bound in JNDI by the OpenJMS server, to make them available to clients.

Configuring Connection Factories

Connection factories are configured in the $OPENJMS_HOME/config/openjms.xml file. E.g:

  <Connectors>
    <Connector scheme="rmi">
      <ConnectionFactories>
        <QueueConnectionFactory name="QueueCF"/>
        <TopicConnectionFactory name="TopicCF"/>
        <XAQueueConnectionFactory name="XAQueueCF"/>
        <XATopicConnectionFactory name="XATopicCF"/>
      </ConnectionFactories>
    </Connector>
  </Connectors>
     

In the above, four connection factories will be bound in JNDI:

  • a QueueConnectionFactory named QueueCF
  • a TopicConnectionFactory named TopicCF
  • an XAQueueConnectionFactory named XAQueueCF
  • an XATopicConnectionFactory named XATopicCF

Notes:

  • Multiple connection factories may be specified for each type.
  • Each connection factory must have a unique name, across all connec tors.

See Also

For more details, see the ConnectionFactories configuration reference.