OverviewThe RMI connector enables OpenJMS clients to connect to the OpenJMS server using RMI. It is configured by adding a < Connector > element to < Connectors > section of the $OPENJMS_HOME/config/openjms.xml file, with a scheme of type "rmi" . E.g: <Connectors> <Connector scheme="rmi"> <ConnectionFactories> <QueueConnectionFactory name="RMIQueueConnectionFactory"/> <TopicConnectionFactory name="RMITopicConnectionFactory"/> </ConnectionFactories> </Connector> </Connectors> Using an external RMI registryBy default, the OpenJMS uses an embedded RMI registry for the RMI connector. An external registry can be configured by changing the < RmiConfiguration > element: <RmiConfiguration embeddedRegistry="false" registryHost="<registry-host>" registryPort="<registry-port>"> </RmiConfiguration> Where:
NOTE: when using an external RMI registry, the registry must be running before the OpenJMS server is started. See AlsoThe following references provide detailed descriptions of the configuration elements related to the RMI connector: |