Integrate Informatica Ultra Messaging

In this procedure, you will learn how to integrate Kaazing Gateway and Informatica Ultra Messaging, a family of next-generation low latency messaging software products.

To Integrate Informatica Ultra Messaging

  1. Download and install the Informatica Ultra Messaging bundle by following the instructions in the Ultra Messaging documentation. The directory that contains the Informatica Ultra Messaging installation (for example, C:\Program Files\UMQ_2.0 on Windows) is referred to as Informatica_UM_HOME.
  2. Locate the default directory (*/jmsclient/bin) created when you installed Ultra Messaging that contains the scripts for setting up environment variables, creating the .bindings files, and starting/stopping Ultra Messaging.
  3. Edit the env.sh file (env_check.sh in later versions) and update the path to Java to that on your machine.
  4. While still in the env.sh file, check the path to the license file (*.lic). You will need this path when you export the license file in a later step.
  5. Run the config.sh file to set up your environment variables and generate the necessary .bindings file. Take note of the location of the .bindings file, as you will need this to configure the Gateway with Ultra Messaging.
  6. Start Ultra Messaging by running startJMS.sh.
  7. Open a command prompt and navigate to GATEWAY_HOME/bin.
  8. Export the license information for Ultra Messaging. Ensure that LBM_LICENSE_FILENAME points to the *.lic file path you noted in Step 4.
  9. In a text editor, open the gateway-config.xml file (located in GATEWAY_HOME/conf) for your Kaazing Gateway installation.
  10. Modify the jms service environment properties with the following:

    <properties>
        <connection.factory.name>uJMSConnectionFactory </connection.factory.name>
      <!-- Set destinations -->
      <context.lookup.topic.format>%s</context.lookup.topic.format>
        <context.lookup.queue.format>%s</context.lookup.queue.format>
        <env.java.naming.factory.initial>
            com.sun.jndi.fscontext.RefFSContextFactory
        </env.java.naming.factory.initial>
        <env.java.naming.provider.url>
            file:/bindings_file_location
        </env.java.naming.provider.url>
      <!-- Dynamic destinations support; omit for static destinations -->
      <destination.strategy>session</destination.strategy>
    </properties>
    

    Replace bindings_file_location in the env.java.naming.provider.url element with the file path to the JNDI .bindings file folder for the connection to the broker. Do not include the .bindings file name in the file path. For example, file:/C:/JNDI-Directory (Windows) or file:/Users/johndoe/Desktop/JNDI-Directory (Mac and Linux).

    Note: For brokers that do not use dynamic destination lookups through JNDI (such as Ultra Messaging), you can add another property to the jms section in the gateway-config.xml file called destination.strategy, and set its value to session.

  11. Locate the directory (*/jmsclient/lib) where you installed Ultra Messaging that contains the library files required for using Ultra Messaging with the Gateway.
  12. Copy the contents of this directory into the Gateway’s lib directory, located here: GATEWAY_HOME/lib/ext.
  13. Start the Gateway as described in Setting Up the Gateway.
  14. In a browser, navigate to the out of the box demos at http://localhost:8001/demo/.
  15. Click the JavaScript demo.
  16. Change the value for Location to ws://localhost:8001/jms.
  17. If you set the destination.strategy property to session, you can leave the value of all Destination fields as the default.

    If you did not set this property or include it in your gateway-config.xml file, you must set the value of the Destination fields to a topic or queue name that exists in the Ultra Messaging JNDI .bindings file.

  18. Click Connect.

    The message “CONNECT: ws://localhost:8001/jms” should appear in the log window followed by the message “CONNECTED: ID:id_value.

  19. Click Subscribe.
  20. Click Send. You should see the message that you sent in the message log.

Subscription and Destination Support

Kaazing Gateway integration with Informatica Ultra Messaging has the following subscription and destination support:

Notes

See Also