I have a route where I am having transaction , and making insert query. in route there are two splitters , splitter inside splitter. From the outer Splitter I am calling one java method which inserts data into some database table.
After Successful insertion the control goes to the second/inner split and calls another java method for database insertion.
Now the scenario is , if some exception happens in inner split or any where , the data which has already been inserted from the outer split , should be rolled back.