IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Java code connect UM by MQTT protocol?

    Posted 12/22/15 10:39 PM

    Hi All

    I want to use jave code to connect the UM by MQTT protocol.
    Who can provide me a sample for MQTT clients for subscriptions and publishing?

    My UM server: nsp://localhost:9000

    I can use java code to connect ActiveMQ by MQTT protocol.

    Thanks


    #Integration-Server-and-ESB
    #Universal-Messaging-Broker
    #webMethods


  • 2.  RE: Java code connect UM by MQTT protocol?

    Posted 12/27/15 06:35 AM

    Check if http://um.terracotta.org/ helps you for UM API reference.

    You can also contact SAG global support, they might provide a sample code snippet.


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 3.  RE: Java code connect UM by MQTT protocol?

    Posted 12/27/15 07:42 AM

    Hi,

    MQTT is a standard wire protocol. Software AG doesn’t provide an MQTT client, so you will need to use a 3rd party client library. The most widely used is the Eclipse Paho client: Eclipse Paho | The Eclipse Foundation
    This also includes some simple samples that will also work with UM. Note that MQTT messages are binary (byte) messages, so if you want interoperability with JMS, for example, you will have to use JMS bytes messages.

    I would recommend that you set up a separate interface (port) for your MQTT communication. The default port number for MQTT is 1883, so you should set up an nsp interface on port 1883 and make sure it is started (in Enterprise Manager).

    Hope this helps.


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 4.  RE: Java code connect UM by MQTT protocol?

    Posted 12/28/15 03:09 AM

    Thank you very much.


    I would recommend that you set up a separate interface (port) for your MQTT communication. The default port number for MQTT is 1883, so you should set up an nsp interface on port 1883 and make sure it is started (in Enterprise Manager).

    I can’t find any information for ‘setup an nsp interface on port 1883’.
    Can you give me a few guidance? Thanks.

    My Enterprise Manager screenshot:
    See Attachments


    #webMethods
    #Universal-Messaging-Broker
    #Integration-Server-and-ESB


  • 5.  RE: Java code connect UM by MQTT protocol?

    Posted 12/28/15 04:36 AM

    Here’s how to create an nsp interface on port 1883:

    • In Enterprise Manager, select the realm on the left
    • Click the Comms tab on the right
    • Click the Interfaces tab just below that
    • Click the Add Interface button at the bottom
    • Select protocol nsp, port 1883, select auto-start and leave the rest as defaults
    • Click OK

    #Universal-Messaging-Broker
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Java code connect UM by MQTT protocol?

    Posted 12/28/15 05:54 AM

    Thanks Jonathan.
    I know how to do it. Base on your reply,It works to connect UM(by MQTT protocol). Thanks again. :smiley:


    #Integration-Server-and-ESB
    #webMethods
    #Universal-Messaging-Broker


  • 7.  RE: Java code connect UM by MQTT protocol?

    Posted 12/28/15 05:56 AM

    Thanks Jonathan.
    I know how to do it. Base on your reply,It works to connect UM(by MQTT protocol). Thanks again. :smiley:


    #Universal-Messaging-Broker
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: Java code connect UM by MQTT protocol?



  • 9.  RE: Java code connect UM by MQTT protocol?