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
Expand all | Collapse all

Is there any way we can write a java code to lock/unlock the webMethods message Queue

  • 1.  Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/10/12 10:19 AM

    Hi Folks,

    Can you please help me on this,
    I would like to write a java code in webMethods server cluster environment to lock or unlock already existing webMethods broker Queue. Is it possible to acquire this through code?
    If so, pls provide any samples.

    I tried with java code which could only create a queue in webMethods queue and not able to alter already existing queue.

    Regards,
    Vinodini.


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


  • 2.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/10/12 03:48 PM

    What are you trying to do that leads you to wanting to lock a queue?


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


  • 3.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/11/12 04:40 AM

    Thanks for the response.

    There was issue with the production ERP system and the ERP system was down for 30 mins and due to which lot of message processed and tried to reach SAP but failed. So there were lots of messages lost.
    So to handle this we have decided to lock the webMethods queue when we have issues to connect to ERP system and unlock the queue when it is able to pig the ERP system. Which wil prevent us from message lost.

    Please let me know if there is any other better solution to handle this scenario.


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


  • 4.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/11/12 04:41 AM

    Thanks for the response.

    There was issue with the production ERP system and the ERP system was down for 30 mins and due to which lot of message processed and tried to reach SAP but failed. So there were lots of messages lost.
    So to handle this we have decided to lock the webMethods queue when we have issues to connect to ERP system and unlock the queue when it is able to pig the ERP system. Which wil prevent us from message lost.

    Please let me know if there is any other better solution to handle this scenario.


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


  • 5.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/11/12 04:51 PM

    Two items come to mind.

    Use MWS to record audit logs of service instances. This will record the input pipeline so you can resubmit the services as needed.

    Suspend the triggers (don’t disable) that are used to send data to ERP. This will hold the events on the Broker. When ERP is back resume the triggers.


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


  • 6.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/12/12 06:15 AM

    Thanks Again.
    I will check on the MWS record audit log.

    Is it possible to achieve suspend/resume queues using java code?


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


  • 7.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/12/12 06:36 PM

    Probably. You could also do a FLOW service to call the appropriate service to suspend the triggers.

    But the easiest thing to do is use Administrator to suspend them.


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


  • 8.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/13/12 06:08 AM

    Thanks alot for the response

    Can you please brief the below point
    “But the easiest thing to do is use Administrator to suspend them.”


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


  • 9.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/13/12 03:38 PM

    Review the IS Administrator’s Guide for how to suspend triggers.


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


  • 10.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/28/12 06:26 AM

    I could suspend and resume the triggers using the below servcies by providing the trigger names
    Pub.trigger.suspendProcessing, Pub.trigger.resumeProcessing.

    Thanks alot for your help.


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


  • 11.  RE: Is there any way we can write a java code to lock/unlock the webMethods message Queue

    Posted 12/28/12 04:44 PM

    Another option is to configure the trigger to suspend when the trigger service throws an exception.


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