Implementation of transaction in Try-catch and SQL in Webmethods-developer/designer

Source: Internet
Author: User

The Trycatch has a structure of three sequence:

-main (Exit On:success)

+try (Exit On:failure)

+catch (Exit On:done)

* The above approach is the previous implementation of WebMethods for database operations, and now with the JDBC adapter, database operations have become simple and flexible, thus replacing this practice. This method is still applicable if there are other special purposes.

There are three transaction options available in the process of JDBC Adapter setup:

No_transaction: No transaction used

Local_transaction: Use a local transaction to commit and rollback all operations on the same connection from the beginning of the transaction to the end of the transaction.

xa_transaction: A connection that can be applied to multiple databases, and all operations in one transaction are simultaneously commit and rollback.

If you need to insert notifications, update notifications, delete notifications, control notifications, and more, only use local_transaction mode is supported.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.