This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Design patterns
 
It's not a secret anymore!