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

Transaction commits without issuing commit

  • 1.  Transaction commits without issuing commit

    Posted Fri December 01, 2006 08:26 PM

    Using IS 6.1

    I do a …

     
    pub.db:connect
    pub.db:clearTransaction ( just in case... )
    pub.db:startTransaction

    then my flow service executes numerous steps and meanders through numerous other flows services using pub.db:execSQL, pub.db:update , pub.db:delete ,etc ( all using the same conn object I used to startTransaction )

    If at some point an update or insert fails, I trap it and perform a rollback.

    Problem is, the transaction doesn’t rollback. The inserts, updates, deletes
    I previously issued, all get processed and commited.

    I have double checked to ensure that the same conn object I use to
    startTransaction is the same one I use to rollback. This happens in both debug mode and when I run the transaction completely through with the Developer.

    I am sure I am missing something, but don’t know what. I do just enough webMethods coding to be dangerous.


    #webMethods
    #Adapters-and-E-Standards
    #Integration-Server-and-ESB


  • 2.  RE: Transaction commits without issuing commit

    Posted Mon December 04, 2006 02:50 PM

    are all the jdbc connections configured to local transaction (for tables in same database) or XA_ Transaction( for tables in different databases) …


    #Integration-Server-and-ESB
    #webMethods
    #Adapters-and-E-Standards


  • 3.  RE: Transaction commits without issuing commit

    Posted Mon December 04, 2006 04:14 PM

    zoomer1961,

    I’m assuming the database you’re using is not supported by the JDBC Adapter and that’s why you’re using WmDB, right?

    Please post a little more detail about how your code is structured. I’m particularly interested in your try-catch block. Are you calling pub.db:connect inside the same try block that you’re calling execSQL, commit, etc?

    • Percio

    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB