• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

are these only disadvantages

 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the book is POJOS IN ACTION.
page no is 40/594.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic