Yes, i am looking for the same type of implementation.
Meanwhile i checked through this site and found some code examples at
http://salto-db.sourceforge.net/salto-d ... tedao.html
which is exactly what i am looking for. But here, i have a doubt in HibernateUtil there is getSession() method which opens transaction and there are methods for closing session, commit and roll back. But i could not find any call in the code for commit and rollback. Only i could find the call for getSession().
So here in the final DAO, if any exception occurs while in save, or saveorUpdate etc... how will the transaction being taken care?
Once this is clear i think i just need to change in single place for handling JTA.
Thanks,
Naresh