webMethods

webMethods

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.  Distributed (XA) Transactions functionality in webMethods

    Posted Wed July 09, 2014 10:05 PM

    Hello all,

    We wanted to achieve distributed XA transactions functionality(two-phase commit) within IS. But when I gone through the document, found that webMethods XA’s functionality works only when two DB’s are involved. Is that correct?

    Scenario:

    In a single transaction, our service will subscribe to the broker and do the transformation and place the document/file in the File System and update a row in the DB and send the acknowledgement to the broker, so that guaranteed document will be deleted and commits it.

    In this scenario, if something goes wrong either at File System or DB or Broker, all the activities needs to be rolled back.

    Will XA functionality will take care of rolling back the file placed in File system if anything goes wrong with that transaction? Or we need to write a logic separately to delete the uploaded file?

    Your valuables inputs will help us a lot.

    Thanks,
    Bala.


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Distributed (XA) Transactions functionality in webMethods

    Posted Thu July 10, 2014 02:19 AM

    Bala,

    In your case, we can’t use XA transactions. You have to control your flow explicitly.

    Thanks,


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Distributed (XA) Transactions functionality in webMethods

    Posted Thu July 10, 2014 02:26 AM

    Hi MR,

    Thanks for the reply,
    Does XA transactions functionality in webMethods is only b/w 2 DB’s ? or I can update DB & send an acknowledgement to broker in one XA transaction, commit it if both completes successfully or rollback both even if one activity fails to complete.

    Please clarify.


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Distributed (XA) Transactions functionality in webMethods

    Posted Thu July 10, 2014 02:29 AM

    Bala,

    Yes,its b/w only 2 db’s. For more details kindly go through doc.

    Thanks,


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Distributed (XA) Transactions functionality in webMethods

    Posted Thu July 10, 2014 05:09 AM

    XA transactions require the ressources used to be XA capable. Most databases are. Theoretically this works with all adapters connecting to XA capable ressources. Filesystems usually do not support transactionality at all.


    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Distributed (XA) Transactions functionality in webMethods

    Posted Thu July 10, 2014 02:40 PM