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.

 View Only
  • 1.  websphere MQ Adapter connection initiation thru java

    Posted Tue October 20, 2015 06:37 AM

    Hi Guys ,

    I have a requirement of using websphere MQ adapater connection in Java program and using it will read MQ queue. We had custom java code ealrier which will drian the messages which we don’t want it now. If we can initiate the webMethods MQ adapter connection in java code it will be easy for us. Can anybody let us know how to create MQ adapter connection objects in java ? Appreciate your help.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: websphere MQ Adapter connection initiation thru java

    Posted Wed October 21, 2015 01:20 AM

    Hi Satish,
    Can you describe the reason for writing this logic in a java program & accessing MQ system to read data from it?
    End of the day you read data from MQ. While you have easier way of doing this through MQ Notification or by creating consumer and pulling the data, why do you need to complicate it?

    Regards
    Senthil


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: websphere MQ Adapter connection initiation thru java

    Posted Wed October 21, 2015 03:08 PM

    Hi Satish,

    please reconsider your design.

    It might be easier creating connections and adapter listeners, adapter listerner notifications to achieve this.

    Or you will have to check for the IBM MQ API how to do this manually.

    Regards,
    Holger


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: websphere MQ Adapter connection initiation thru java

    Posted Wed October 21, 2015 06:03 PM

    Satish – If already MQ is providing you necessary operations, why you want to go with custom one. Did you see any challenges ?

    Thanks,


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 5.  RE: websphere MQ Adapter connection initiation thru java

    Posted Thu October 22, 2015 09:52 AM

    I guess your client does not have WebSphere MQ Adapter? Is it so?

    In my past experience, we had a utility to put bulk messages in to MQ queue via java service. Just refer the below links and you write a java service in webMethods. Also take care of appropriate jars from IBM WebSphere MQ.

    http://www.coderanch.com/t/77875/Websphere/Simple-Java-MQ-Connection

    And refer IBM MQ API.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods