File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction

 
Renata fonseca
Ranch Hand
Posts: 48
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does the Transaction should be implemented in a project that don�t use EJB?
Is the DAO's responsability to manage the transaction?
Is the DAO methods caller (a "session bean like") responsability?
 
Nagendra Prasad
Ranch Hand
Posts: 219
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say in this case, you could still have a manager class which deals with some logic surrounding the result set. This manager could manage the connections to the database.
i.e manager->initialise DAO->work with result set... and so on..
 
Willian Corcel
Greenhorn
Posts: 13
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd put the transaction commands (commit, rollback) inside DAO class...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic