Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to deal with Transactions : Design query  RSS feed

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 .
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!