You are here: Reference Manual > FME Server Services > Notification Service > Subscribers > JMS Subscriber

JMS Subscriber

The JMS Subscriber receives notifications from topics and relays them to Java Message System (JMS)-compliant message brokers, such as IBM WebSphere MQ.

Setting up a JMS Message Broker with FME Server

Before configuring a JMS subscriber, you must set up a JMS broker to work with FME Server. The steps depend on the broker you use, and are explained in the following section (applicable to both the JMS Subscriber and JMS Publisher):

Creating a JMS Subscriber for FME Server

  1. In the FME Server Web User Interface, select Manage > Notifications, then select the Subscriptions tab, and click New.
  2. Provide a name for the Subscription.
  3. Specify the topics to subscribe to. When receiving messages from these topics, a JMS message is sent to the message broker.
  4. Specify ‘jms’ for the protocol.
  5. Specify the JMS-specific fields for the subscriber
  6. Click OK.

Notification Content Template

The notification content template uses the following keywords in the incoming notification:

{

"location": "<location>"

"subscriber_content": "custom_message"

}

If the "subscriber_content" keyword is present, it overrides the Notification Content Template.

For example, consider the following Notification Content Template:

Hello, {Location}

If the incoming notification contains the following:

{

"location": "world"

}

The JMS subscriber sends the following message:

"Hello, world"

If the incoming notification contains the following:

{

"location": "world"

"subscriber_content": "My custom message"

}

The JMS subscriber sends the following message:

"My custom message"

See Also