on 06-24-2010 11:24 AM
I have 3 SQL statements to be exceuted . The XML SQL message format is
<Statement 1>
Delete Query
</Statement 1>
<Statement 2>
Insert Query
</Statement 2>
<Statement 3>
Stored Procedure
</Statement 3>
Are all these stetements going to be execurted in one transaction mode.How to achieve this in terms of configuration in JDBC adapter
Will all the statements will be executed sequqentially.
If one statement did not execute properly will other stetements be executed after that .
Thanks
Sabyasachi
answred
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
why dont you create a SP that call those three SP. if error occurs define the proper control error. so, you can execute the main SP from jdbc sender in PI and in an error occurs no result will be returned to PI and a log message will be created in the DB locally.
Thanks
Rodrigo P.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When the XML message comes to adapter engine, it consider that as one XML. It means if one SP call failed , then the whole message will fail in adapter engine.( Even if you define XSLT mapping also)..
So, please try to use java proxy if you can't change anything in DB. Otherwise please have one common SP for PI and handle all logics inside main SP.
Hi,
Are all these stetements going to be execurted in one transaction mode.
I believe you want this at receiver side.
It will be easier to handle in the XSL mapping. Yes, all 3 statements will be executed in one transaction mode.
How to achieve this in terms of configuration in JDBC adapter
No special configuration required.
Will all the statements will be executed sequqentially.
Yes.
If one statement did not execute properly will other stetements be executed after that .
What do you mean by "not execute properly"? the queries will either be executed or none will be executed - which might be due to DB being down or the connection getting failed.
Let us know if you have any further questions.
Regards,
Neetesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.