cancel
Showing results for 
Search instead for 
Did you mean: 

SAP PI : TU&C/C : Need a concrete exemple

Former Member
0 Kudos

Hello PI Gurus,

One of my client want to experiment with 2 Phase Commit

According to

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00ffdb4d-e869-2a10-7688-891d7eea1...

I should use the TU&C/C  Interface Pattern

Here's my case

Inpout XML file

 

2)

        If  number in XML < 10 write the following process in a 2PC transaction

a.       Store the record in the  Table

b.       Send message to JMS Q

3)      Else write the following process in a 2PC transaction

a.       Store the record in Error table

b.       Send message to Error JMS

c.       Throw exception to have process roll back

According to the error Message I get when I create  Service Interface with Interface Pattern TU&C/C I ge the follwoing

A service interface with pattern TU&C/C must have at least one operation with pattern Tentative Upda...

A service interface with pattern TU&C/C must have at least one operation with pattern Compensate Ope...

 

A service interface with pattern TU&C/C must have at least one operation with pattern Confirm Operat...

Both frankly I am not sure how to properly configure it so my 2PC will work properly.

I need a concrete a exemple.

Thanks

Vincent

Accepted Solutions (1)

Accepted Solutions (1)

former_member184789
Active Contributor
0 Kudos

Hi,

If you are creating an SI with pattern TU&C/C you need to provide an operation of operation pattern TU, one of Confirm & one compensate, apart from your normal operation. It is also mentioned in Page-4 of the document that you have mentioned above.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi ,

Please check this to get some more information for a better understanding on TU & CC pattern.

Regards

Raj