You are here: Reference Manual > FME Server Services > Notification Service > Publishers > JMS Publisher

JMS Publisher

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

Setting up a JMS Message Broker with FME Server

Before configuring a JMS publisher, 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 Publisher and JMS Subscriber):

Creating a JMS Publisher for FME Server

  1. In the FME Server Web User Interface, select Manage > Notifications, then select the Publications tab, and click New.
  2. Provide a name for the Publication.
  3. Specify the topics to publish to. When receiving JMS messages from the message broker, these topics will be notified.
  4. Specify ‘jms’ for the protocol.
  5. Specify the JMS-specific fields for the publisher
  6. Click OK.

Notification Content

The JSON notification content is comprised of the following key-value pairs:

  • "fns_type": "jms_publisher"
  • "jms_publisher_type": This value can be one of the following JMS message types:
    • "text" - TextMessage
    • "object" - ObjectMessage
    • "map" - MapMessage
  • "jms_publisher_content": This value can be one of the following:
    • "<content>" - The content of a TextMessage.
    • "<object>.toString()" - The content of an ObjectMessage.
    • "<map_key1> = <map_value1>, <map_key2> = <map_value2>", and so on - The name-value pairs that comprise a MapMessage.

Example

This example notification is sent based on a TextMessage received from a message broker. The message body contained "Hello World".

{

"fns_type": "jms_publisher"

"jms_publisher_type": "text"

"jms_publisher_content": "Hello World"

}

See Also