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
  • 1.  Stored procedure using local transaction JDBC Adapter

    Posted Thu February 10, 2005 12:57 PM

    When I’m executing a stored procedure(JDBC adapter using Local transaction) it starts and commits the transaction during this step. It doesn’ wait until the flow exits.
    I thought the commit or rollback was performed when the flow service exits. Is this correct?
    How can I prevent that this service commits immediately?


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


  • 2.  RE: Stored procedure using local transaction JDBC Adapter

    Posted Thu February 10, 2005 04:00 PM

    Stefan,

    The commit/rollback is not linked with flow service exits,in the flow use the startTransaction as first step and once the SP executes successfully then depends on the SP OUT flag use the commitTransaction and further down exit the flow with success or just do nothing flow will exit automatically when no further steps involves.

    HTH,
    RMG


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


  • 3.  RE: Stored procedure using local transaction JDBC Adapter

    Posted Thu February 10, 2005 04:10 PM

    To associate database transaction with the flow one needs explicitly create transaction context using pub.art.transaction.startTransaction.
    Then you can control such transaction from the flow using commitTransaction and rollbackTransaction services.

    Gregory Kanevsky


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


  • 4.  RE: Stored procedure using local transaction JDBC Adapter

    Posted Thu February 10, 2005 07:24 PM

    The “startTransaction/commitTransaction/rollbackTransaction” services are located in the WMART package.These services takes the i/p of transactionName(set someusefulName)and remember the same name should be used in the downstream ie commit/rollback services too.

    HTH,
    RMG


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


  • 5.  RE: Stored procedure using local transaction JDBC Adapter

    Posted Mon February 14, 2005 04:49 AM

    Hi Stefan,

    In the JDBC COnfiguration, set it from, " Local Transaction" to “No Transaction”.

    Hope this solves ur problem


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


  • 6.  RE: Stored procedure using local transaction JDBC Adapter

    Posted Mon February 14, 2005 09:14 AM

    Solved! Didn’t work as expected because I was tracing the flow.
    Now it works fine with implicit transaction handling.
    Thanks for all help.


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