Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to deal with Transactions : Design query

Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic