Depending on your message broker, additional configuration may be required to enable JMS.
Configuring JMS for Apache ActiveMQ
JMS support for Apache ActiveMQ is pre-configured in FME Server; no additional configuration is required. For a complete reference, see JNDI Support. (JMS uses the Java Naming and Directory Interface (JNDI) to dynamically request named objects from the message broker.)
When using Apache ActiveMQ with JMS, keep in mind the following:
FME Server, as a JMS client, connects to ActiveMQ via a connection factory named object, and references ActiveMQ topics or queues via a destination named object. The named objects are typically specified via a JNDI configuration file, jndi.properties. For more information, see JNDI Support.
In the simplest configuration, a jndi.properties file is not required. By default, the connection factory name is ConnectionFactory. ActiveMQ also provides a means to dynamically connect to queues and topics via the special destination names dynamicQueues/<queue> and dynamicTopics/<topic>.
Configuring JMS for IBM WebSphere 7
For IBM WebSphere 7, a set of JMS Administered Objects must be created in order to interface with JMS. The easiest way to accomplish this task is by using MQ Explorer.
Note: The following steps assume that a message queue is deployed and running on a server, and that a server-connection channel is created for client connections. In our examples, the queue manager name is qm, the queue manager server host name is server and the server-connection channel name is c1.
Queue manager name | qm (for example) |
Connection method | Connect directly |
Host name or IP address | server (for example) |
Port number | 1414 |
Server-connection channel | SYSTEM.ADMIN.SVRCONN (for example) |
JNDI namespace location | File system |
Directory | c:\jndi (for example) |
Provider URL | file:/C:/jndi/ (for example) |
Name | cf1 (for example) |
Messaging provider | WebSphere MQ |
Type | ConnectionFactory |
Transport | MQ Client |
Connection/Base queue manager | qm (for example) |
Connection/Connection list | server(1414) (for example) |
Channel/Channel | c1 (for example) |
setmqaut -m qm -t qmgr -g Users +inq +connect
To enable consumer access to a queue or topic to a particular user group Users, execute the following command:
setmqaut -m qm -t queue -n q1 -g Users +get +inq +browse
setmqaut -m qm -t topic -n t1 -g Users +sub
To enable producer access to a queue or topic to a particular user group Users, execute the following command:
setmqaut -m qm -t queue -n q1 -g Users +put
setmqaut -m qm -t topic -n q1 -g Users +pub
What's Next?
To make FME Server aware of the newly-installed JMS libraries, proceed to Configuring FME Server as a JMS Client.