• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why to prefer EJB (especially stateless session bean) over POJO?  RSS feed

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why to prefer EJB (especially stateless session bean) over POJO???

Is it just to get advantage of some services like transaction, security (what's more???) etc provided by EJB container??? Or some strong reason is there?

Thanks.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is it just to get advantage of some services like transaction, security (what's more???) etc provided by EJB container???

That is a pretty compelling reason.
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
transaction and security are non-trivial to implement, and I definitely prefer to have some one else dealing with that,

there is also scalability supported by application servers,
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!