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

Rollback Enterprise Integrator 451 Oracle AdapterIntelligent

  • 1.  Rollback Enterprise Integrator 451 Oracle AdapterIntelligent

    Posted Wed March 06, 2002 05:43 PM

    Hi,
    When my SQL statement, say an INSERT statement which is in a try block fails, do i need to do a “explicit ROLLBACK” in my catch block if i want to rollback any of my previous SQL INSERT operations?.
    Or is it adviced to throw an exception explicitly inside the catch block so that webMethods itself will ROLLBACK its previous SQL operations?.

    Any Help would be appreciated.


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


  • 2.  RE: Rollback Enterprise Integrator 451 Oracle AdapterIntelligent

    Posted Thu March 07, 2002 01:17 PM

    Using the Database Adapter for Enterprise Server, SQL statements are only committed when a component script has finished executing.

    If TRY-CATCH blocks are used to handle exceptions in a multi-action database script, the script will continue to work towards its finish line and will, at that point, commit the database actions which did not fail.

    Therefore, a rollback should be called in the database action CATCH blocks. This will definitively prevent the prior database actions from committing to the database upon the script’s exit.


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


  • 3.  RE: Rollback Enterprise Integrator 451 Oracle AdapterIntelligent

    Posted Fri December 20, 2002 10:10 AM

    Hi ,

    I am also facing similar kind of problem in my Integration.

    The Oracle Adapter doesn’t rollback the entire transaction in case of any failure and therefore commits the database actions which didn’t fail.

    Can u pls tell me how to go about this problem?

    Thanks in Advance,
    Neelima


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