wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Design patterns Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Design patterns" Watch "Design patterns" New topic
Author

Design patterns

sitaram irrinki
Ranch Hand

Joined: Feb 16, 2005
Posts: 158
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

Joined: Sep 29, 2002
Posts: 1683
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


SCJP 1.4, SCWCD 1.3, SCBCD 1.3
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Design patterns
 
Similar Threads
DAO usage
session maintenance
Session maintenance in Hibernate
Hello
EJB AND other technologies