This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes How to deal with Transactions : Design query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to deal with Transactions : Design query" Watch "How to deal with Transactions : Design query" New topic
Author

How to deal with Transactions : Design query

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Please tell me the design issue for controlling Transactions , what is the pros and cons for each ??regarding controlling Transactions from a Client and from a Bean Component

Controlling from the client From My servlet which acts as a client EJB Bean :

// Assuming there is a Hello EJB interface with a method callMethod();


and the below is directly controlling Transactions from the Bean itself



Please tell me what will be the good pratice and why .


Save India From Corruption - Anna Hazare.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to deal with Transactions : Design query