Friday, January 31, 2003

POJO - does P stand for plain or poor?


Arise, POJOs!.

[...] I think this will finally be the year when POJOs rise up against the oppression of their J2EE tyrants. The world will come to realize that J2EE is nothing more than a layering technology. Servlets, session beans, and message consumers alike should simply decorate POJOs. Indeed, these J2EE components are merely ambassadors rolling out red carpets for other technologies to approach the POJO. And yet unadorned by these decorations, a POJO has value in its own right as the keeper of business logic. [...]

[Mike Clark]

I agree POJOs are valuable by themselves. But all these "layers" didn't come about just because some smart people were looking for "solutions in search of problems" (well except EJB).  POJOs will have to obey Law of Demeter, interfaces and implement contracts. They have to overcome lack of dynamism in Java, security restrictions from private and protected modifiers,  "static" methods and members, and lots of other linguistic barriers.


1:02:52 PM  #