Skip to Content
author's profile photo Former Member
Former Member

How to span DB transaction over whole BLT?

Hi All,

how to achieve transaction ACID properties regarding multiple DB connections over a full BLT? This would require to switch

off autocommit and reuse the same DB connection in serveral actions of the BLT and then issue a commit at the end.

Is this possible? Often we have the need to have transactional semantics of a BLT. Is it possible to leverage this via a custom

action? Is there access to the connection pool of MII from a custom action?

Thanks,

Matthias

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 12, 2008 at 10:39 AM

    The simple answer, Matthias, is no, but with custom actions, this would be quite easy to do. Ideally, you could have access to the MII connection pooling system, but if not, you could use JDBC directly to do the same thing. You would need to mirror the concept of the JCO transactions (Begin, Execute, Commit/Rollback), and the "magic" needed here is the ability to pass the database connection between these functions (in particular, the Begin action would create and own it, the others would act upon it).

    It would be much easier to do if you had the support of the MII team, and this would be a very natural enhancement request for the product.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi, Matthias.

      I'm no longer with SAP, but I would suggest contacting Jeremy Good and/or Salvatore Castro at the SAP office in Exton for some assistance in obtaining the documentation and support you'll need, particularly if you are writing the actions for version 12.0, which represents a lot of internal changes to MII.

      Rick

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.