Peter Norell
Posts: 5
Nickname: bithir
Registered: Dec, 2002
|
|
Re: Beautiful EJB?
|
Posted: Dec 18, 2002 4:00 AM
|
|
I quote
I shall not today attempt further to define the kinds of material [pornography] . . . but I know it when I see it.
-- Potter Stewart
Beauty lies in the eyes of the beholder
--
I do agree with you, the EJB standard is not the prettiest around, in fact it is a rather homely looking. What you have to do thou is to put into the context on what the intended audience is. Any generalised system requiring distributed, transactional and very scalable solution will have to tweak the design. EJB standard relies heavily on tried methods on how to solve stuff, it does it decently without impairing too much on the developer.
Seen from a pure OO point of view, it's a bit vile to isolate the data (Entity beans) from the behaviour (business logic - usually represented as Session Beans). It has always been a thorn in my side, but if you study transactions closer, you will notice that they seldom are very OO in nature but rather top-down or procedural in nature.
To stir some life into this discussion, I would like to raise this question: Maybe we are walking the wrong way trying to objectify a top-down procedural event like a transaction?
Regards, Peter Norell
|
|