Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OSB - rollback in insert operation

EladAug 23 2016 — edited Aug 30 2016

Hi

in my proxy service (service type= WSDL Web Service), I do for each loop to insert records to SQL SERVER database.

Since I have a demand for response ("Success" or details about the exception), I can't use PUBLISH action, and I must use SERVICE CALLOUT action, to route to another proxy (service type = Any XML Service), and there - I route to the business service, and do the inserting to the DB.

This works fine !!!

But I have another demand - if one of the record is defective I need to do Rollback to allĀ  the records that already insert to the DB.

I notice that the second proxy has auto commit after every record, and i think I have to cancel it.

Then, I need to do rollback in the main proxy.

And finally, I need to do commit only when all records are inserted successfully.

How can I do this?

I saw solutions that appropriate to JMS queue (service type = messaging service), but I have a proxy with service type = Any XML Service.

Thanks in advanced,

Elad

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2016
Added on Aug 23 2016
9 comments
1,740 views