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.  Error Handling

    Posted 08/14/15 03:09 AM

    Hi,

    How can i differentiate Transient And fatal error at run time?

    I implemented resource monitoring mechanism in trigger.

    Subscriber Service:

    Main(Success){
    Try(Failure){
    MAP
    DB Activities
    }
    Catch(Done){
    getLastError
    if (error=Transient Error), set isAvailable =false.
    }
    }
    Branch on isAvailable
    false, ThrowExceptionForRetry.

    Resource Monitor Service:

    Main(Success){
    Try(Failure){
    Check the DB Status
    Set isAvailable=true
    }
    Catch{
    Set isAvailable=False.
    }
    }

    My doubt how to check transient error occurred in the subscribing service try block from lastError?


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Error Handling

    Posted 08/18/15 07:37 PM

    i may be wrong but i think there is no out of box mechanism to tell you if an error is transient or fatal. for this you may have to create some kind of database with error numbers and seeing what error number means what to you and take action accordingly.


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Error Handling

    Posted 08/19/15 12:20 AM

    Transient error is an instance of com.wm.app.b2b.server.ISRuntimeException, you can check the class.


    #Integration-Server-and-ESB
    #webMethods