on 03-13-2009 6:07 AM
Hi All,
We are using the JBDC receiver adapter for inserting the record and for that we are using the Strored Procedure and we have N number of the records for insertion in a single mapping so, we have given the occurence of the Statement 1 : unbounded as, multiple statement will be executed so, my query is if one of statement fails because of some error(Mapping error or data error) what will happen to the statement which are already executed, do they rollback? or it is not possible in case of stored procedure?
Regards,
Gaurav
Yes ,
you can manage Rollback / Commit in stored procedure in exception handling block,Just catch the error and write conditions for rollback..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This is one of the solution but i guess there is one more issue, if we have 10 statements and third statement shows error and Stored Exception exception branch is able to catch then it will rollback the previous statement but can we able to restrict another 7 pending statement for execution or not?
Regards,
Gaurav
what will happen to the statement which are already executed, do they rollback?
No, in my opinion, they will not rollback.
You may handle transaction handling in stored procedure but I guess it won't be possible in this case of yours. Rollback or commit could only be handled for each SP call but you have multiple such calls.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.