• Post Reply Bookmark Topic Watch Topic
  • New Topic

are these only disadvantages  RSS feed

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I read Pojos in Action book.
It says EJB has major 2 disadvantages.

1)cumbersome nature of the development processwhen using EJBs doesn’t allow developers to take advantage of many of the best
practices used for “normal” Java development

2)EJBs encourage developers to write procedural-style applications

are there any other disadvantages in EJB ?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samanthi perera wrote:

1)cumbersome nature of the development processwhen using EJBs doesn’t allow developers to take advantage of many of the best
practices used for “normal” Java development

Which version of EJBs does that book talk about? EJB3 (and EJB3.1) are no longer cumbersome.
Samanthi perera wrote:
2)EJBs encourage developers to write procedural-style applications

I haven't read that book so I don't know in what context this is stated. And I also don't see how that applies to EJBs.

 
Samanthi perera
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the book is POJOS IN ACTION.
page no is 40/594.
 
Paul Hunnisett
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally, in the case of EJB 3, I would disagree with both of those statements. I think that EJBs are good OO - especially as they can increase decoupling - and are not at all cumbersome to write.
 
Ran Pleasant
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Samanthi perera wrote:EJBs encourage developers to write procedural-style applications.


I strongly disagree with this. I am currently having to deal with a number of co-workers who do write procedural code in EJBs. The root of the problem is not with EJBs themselves, rather it is rooted in a lack of knowledge about EJBs, OOAD, UML, basic Object Oriented Theory, and the use of an Anemic Domain Model. People who don't know EJBs but do have good OO skills, understand the theory behind OO, who do OOAD, etc., will not go into their first EJB and start writing procedural code. Why? Because they are object-oriented programmers!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!