Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb doubt

 
Ramakrishnan thiyagarajan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
why we using ejb rather than jdbc transaction? pls clear my doubt.
 
Tausif Khanooni
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
using ejb make ur life so easy.. for example

1. it does database connection for you.. which means if u r changing ur database also u dont have to touch ur code.
2. it maintain and handle connection pooling for you. u dont have to bother about it
3. it does all commit and roll back the transaction automatically.. u dont have to handle exceptions and do ur rollback etc..

so is int it developers life saver??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic