Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design patterns

 
sitaram irrinki
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP -> Struts -> Session Beans -> DAO's
we want to maintain transaction in session beans. can container itself manage transactions for session beans in this scenario? or should we maintain while coding?

Hibernate:
Can i use hibernate inplace of DAO's in the above senario? What are the benifits to be added by Hibernate,if i go for hibernate?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any transactions started in the session beans will propagate into the DAOs (and then into hibernate if used with DAOs), so no problem.

As for hibernate, this may help.
http://www.coderanch.com/t/316339/EJB-JEE/java/should-we-EJB
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic