Overview

OpenJMS provides connectivity via TCP, RMI, HTTP and SSL protocol stacks using connectors.

Connectors are configured in the $OPENJMS_HOME/config/openjms.xml configuration file, using the <Connectors> element. E.g:

  <Connectors>
    <Connector scheme="tcp">
      <ConnectionFactories>
        <ConnectionFactory name="ConnectionFactory"/>
      </ConnectionFactories>
    </Connector>
  </Connectors>
        

The above specifies that the connection factory named "ConnectionFactory" uses the TCP Connector.

Supported Connectors

The following documents detail the supported connectors, and their configuration requirements:

ConnectorDescription
TCP Provides connectivity using TCP/IP sockets.
TCPS Provides connectivity using secure sockets.
RMI Provides connectivity using RMI.
HTTP Provides connectivity using HTTP.
HTTPS Provides connectivity using HTTP over secure sockets.
Embedded Provides connectivity within the same JVM.

Configuring multiple connectors

In order to configure multiple connectors, add a <Connector> entry for each desired connector.

Each connection factory must have a different name.

E.g, to configure tcp and rmi connectors:

<Connectors>
  <Connector scheme="tcp">
    <ConnectionFactories>
      <ConnectionFactory name="ConnectionFactory" />
    </ConnectionFactories>
  <Connector scheme="rmi">
    <ConnectionFactories>
      <QueueConnectionFactory name="QueueConnectionFactory" />
      <TopicConnectionFactory name="TopicConnectionFactory" />
    </ConnectionFactories>
  </Connector>
  </Connector>
</Connectors>