File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
 
GeeCON Prague 2014
 
subject: Design patterns