Mr. Jonathan Heywood,
In catch block I didn’t invoke pub.flow:throwExceptionForRetry.
(What behavior do you actually want if the database insert fails? ) If any exception occurs in the flow service, it should go into catch block and gets finished.
But now when exception occurs(inside subscription service) the trigger repeatedly calls again and again the subscription service.
My need is, if exception occurs the flow service should go into catch block and gets finished, It should not execute repeatedly.
And can you please elaborate the part
" [Generally you would want it to be logged to the service audit database so you can manually resubmit it later (when you have fixed the data issue). In that case, you don’t actually need the transaction management and try-catch block, as the JDBC service will throw an exception. Just configure service auditing on the top-level service to log on error and include pipeline on error. That should ensure only a single execution attempt for each message. ]"
Because the subscribe flow service will receive a document(which contains a document list ).
And i should iterate(loop over) the document list and insert into the database. So that i perform start and insert transaction inside try and roll back transaction inside catch.
#Integration-Server-and-ESB#webMethods