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

Erorr Handling with out using try/catch mechanism

  • 1.  Erorr Handling with out using try/catch mechanism

    Posted Fri November 08, 2013 05:06 PM

    Hello All,

    How to achieve error handling mechanism with out using standard try/catch mechanism in wM.
    Please help me out.


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Erorr Handling with out using try/catch mechanism

    Posted Fri November 15, 2013 03:04 AM

    any particular reason for avaoiding try/catch?


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Erorr Handling with out using try/catch mechanism

    Posted Fri November 15, 2013 05:36 PM

    you can review the Event Manager, especially look into Exception Event.
    You can create a generic Exception handler to deal with all Exceptions generated by either flow or Java services.


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Erorr Handling with out using try/catch mechanism

    Posted Thu November 21, 2013 02:38 AM

    in my test, if there is no try-catch, event manager couldn’t catch the exception.

    • WM v7.1.3
    • Exception Event

    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Erorr Handling with out using try/catch mechanism

    Posted Wed December 04, 2013 03:52 AM

    Hi Prem,

    In that case use single sequence - with exit property set as “Done”. and in the sequence steps where actually you are going to invoke other app services/adapter servers - right after that step invoke “getLastError” service and based on the lastError- Exit or continue the flow. (i know this seems to be a silly option :frowning: )

    Thanks,
    Mohit K


    #Integration-Server-and-ESB
    #webMethods