JMS

Use the IBM® App Connect Enterprise Toolkit to configure message flow nodes that are converted from the IBM App Connect Professional JMS activities.

About this task

When you import an orchestration that contains JMS activities, the conversion utility creates a message flow with the JMSInput, JMSOutput, and JMSReceive nodes. See Table 1, for information on which nodes are used for each of the activities.

Table 1. IBM App Connect Professional JMS activities and the corresponding IBM App Connect Enterprise message flow nodes
IBM App Connect Professional activity IBM App Connect Enterprise node
Poll message

JMSInput node

Send message

JMSOutput node

Get message

JMSReceive node

Subscribe message

JMSInput node

Publish message

JMSOutput node

Steps to connect JMS:

Procedure

  1. Select the JMS node (JMSInput node/JMSReceive node/JMSOutput node).
  2. Navigate to JMS connection tab.
    1. Provide JMS provider name as Apache ActiveMQ(Default is Websphere MQ).
    2. Provide Initial context factory, Location JNDI bindings and Connection factory name. The connection factory name must be the same as SecurityIdentity. Interface for specifying InputNode properties

Steps to Create the SecurityIdentity (Connection factory name) for JMS Connection in IBM App Connect Enterprise:

Procedure

  1. Navigate to the server or workstation where IBM App Connect Enterprise is installed and running.
  2. Open the IBM App Connect Enterprise console on the server where the instance is running.
  3. Run the mqsisetdbparms command to create a security identity for your JMS connection in the Console.

    The syntax is as follows:

     mqsisetdbparms --work-dir <workDir> -n jms::<securityId> -u <userName> -p <password>

    For example:

     mqsisetdbparms --work-dir C:\ACE12NODEWS\JMS_SERVER -n jms::ConnectionFactory -u <JMS_Username> -p <JMS_Password>

    Replace:

    <workDir> with the working directory of your integration server.

    Example: C:\ACE12NODEWS\JMS_SERVER.

    <securityId> with connection factory name you are using.

    Example: ConnectionFactory.

    <JMS_Username> with the JMS username.

    <JMS_Password> with the JMS password.

    Note:

    After running the command successfully, restart your integration server in IBM App Connect Enterprise to apply the changes. Right-click on the integration server (for example JMS_SERVER) in the toolkit and select Restart.

    Context window showing options that appear after right-clicking on the integration server.

    Adding activemq jar:

    Add activemq jar in the path: C:\Program Files\IBM\ACE\12.0.12.4\server\classesInterface showing the location of the jar file

JMSInput node for Poll Message activities

About this task

In IBM App Connect Enterprise, Poll Message can be achieved through JMSInput node. It immediately processes a message as soon as it arrives in the queue.

Procedure

  1. Specify the source queue name from which the node will receive messages.
    Interface for specifying the source queue for JMSInput node
  2. Configure the JMS connection as detailed in Steps to connect JMS.
  3. In the message domain parsing property, select message domain from drop down, to specify how the file content should be interpreted. For example, JSON: For JavaScript Object Notation message.
    Drop down showing the options for message domain. JSON: For JavaScript Object Notation messages is highlighted

JMSOutput node for Send Message activities

About this task

In IBM App Connect Enterprise, Send Message can be achieved through JMSOutput node.

Procedure

  1. Specify the destination queue to which the node publishes outgoing messages.
    Interface showing input box for specifying the destination queue
  2. Configure the JMS connection as detailed in Steps to connect JMS.
  3. Specify the message type in the Advanced tab, if needed. The default message type will be "Determine output message from the JMS Message Tree<default>"
    Drop down list of options for JMS output message. TextMessage is highlighted

Example

Example message node:

JMSInput node > JMSOutput node

JMSReceive node for Get Message activities

About this task

In IBM App Connect Enterprise, Get Message can be achieved through JMSReceive node.

Procedure

  1. Specify the source queue name from which the node will receive messages.
    Interface for specifying the source queue
  2. Configure the JMS connection as detailed in Steps to connect JMS.
  3. In the message domain parsing property, select message domain from drop down, to specify how the file content should be interpreted. For example JSON : For JavaScript Object Notation messages.
    Drop down list showing options for JMS Receive message domain. JSON : For JavaScript Object Notation messages is highlighted
  4. Specify the message selectors to filter messages if needed. For more details, refer to the link: https://www.ibm.com/docs/en/app-connect/13.0?topic=enterprise-jms-message-selector
    Interface for specifying message selectors

JMSInput node for Subscribe Message activities

About this task

In IBM App Connect Enterprise, Subscribe Message can be achieved through JMSInput node.

Procedure

  1. Specify the topic to which the node is subscribed.
    Interface for specifying the subscription topic
  2. Configure the JMS connection as detailed in Steps to connect JMS.
  3. In the message domain parsing property, select message domain from drop down, to specify how the file content should be interpreted. For example, JSON: For JavaScript Object Notation message Drop down showing the options for message domain. JSON: For JavaScript Object Notation messages is highlighted
  4. Specify the Message Selectors to filter messages, if needed. For more details, refer to the link: https://www.ibm.com/docs/en/app-connect/13.0?topic=enterprise-jms-message-selector.Input boxes for specifying message selector properties

JMSOutput node for Publish Message activities

About this task

In IBM App Connect Enterprise, Publish Message can be achieved through JMSOutput node.

Procedure

  1. Specify the topic to which the node publishes the messages.
    Interface for specifying the publication topic
  2. Specify the Reply to destination to which the receiving application must send a reply message.
  3. Configure the JMS connection as detailed in Steps to connect JMS.
  4. Specify the Message type under Advanced tab if needed. The default message type will be "Determine output message from the JMS Message Tree<default>".
    Drop down list of options for JMS output message. TextMessage is highlighted

Example

Example message node:JMSInput node > JMSOutput node >JMSReceive