This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Design patterns  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!