Managing transaction (non-xa or say local) in Mysql + JDBC + Tomcat
Mihir K Parekh
posted 4 years ago
Hello all readers,
Please help me to solve this problems.
My development sources
Tomcat 6.x and
custom framework for Object relational mapping.
what i have been trying to do since six last month , to manage commit and rollback on single mysql database with some single class. i first try to implement JOTM transaction manager but it is deprecated so then i successfully integrate the ATOMIKOS open source transaction manager but with it insertion is commited perfectly but not deletion and updation. I am using a single JDBCUtility class to perform all the database operation which gets data source from JNDI data source of tomcat. and i am using that JDBCUtility class from classes which extends BaseBusinessObject from my custom framework.so everything is accessed from service framework (which i implemented in custom framework) , and all the services called from single class called BlfServiceBean which should be capable of commiting to database if everything is success or rolled back to previous state if anything is wrong (means any error occurs).