File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Design patterns" Watch "Design patterns" New topic

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?

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.

SCJP 1.4, SCWCD 1.3, SCBCD 1.3
I agree. Here's the link:
subject: Design patterns
jQuery in Action, 3rd edition