I have a multithreaded application wherein am parsing a file and inserting into database - I have a db connection pool for writing to the database - I need to add a transaction control over the parse/write entire operation i.e. in case of any error during the parse/db-insert operation, I want to rollback the entire operation wherein my partial db writes need to be rolled back- is there any way to do this?