Chapters from Manning's 'Bitter EJB', by Bruce Tate et al., will be made available on TheServerSide for public review. The 'Bitter Interfaces' and 'Bitter Tunes' chapters are now availabe for download. 'Bitter Interfaces' focuses on which decisions can and should be made early on in the development lifecycle. 'Bitter Tunes' looks at antipatterns related to the EJB performance tuning process.
Download and Review 'Bitter EJB' Review Chapters 4 and 11
-
TheServerside Presents 'Bitter EJB' Book Review Process (1 messages)
- Posted by: Nitin Bharti
- Posted on: December 02 2002 20:33 EST
Threaded Messages (1)
- TheServerside Presents 'Bitter EJB' Book Review Process by Konstantin Ignatyev on December 03 2002 12:24 EST
-
TheServerside Presents 'Bitter EJB' Book Review Process[ Go to top ]
- Posted by: Konstantin Ignatyev
- Posted on: December 03 2002 12:24 EST
- in response to Nitin Bharti
Hello!
That is going to be a good book for sure. There is my note regarding chapter 4:
<quote>
4.5.1 Developing a Flexible Solution
The solution is simple. Refactor the logic that re-queries the server and fulfills the DTO relationships into the DTO itself and implement a lazy-loading scheme.
For example, when client A now queries user information, client A only gets user DTOs. When the time comes that A needs booking information, client A simply calls user.getBookings() and gets back a collection of booking DTOs. Behind the scenes, the user DTO implementation actually checks to see if it already has the booking information. If not, the user DTO implementation queries the server for the booking DTOs and returns them to the client.
</quote>
I would say that smart DTO creates some difficulties for CORBA clients. It requires CORBA 2.3 compliant server and client that is not always the case. For a complete explanation look at: http://www.theserverside.com/resources/pdf/CorbaEJB.pdf #11.1.2.
I would suggest using silly DTO that might be completely defined by IDL. If a client needs that lazy loading/caching, then it might be easy done with simple wrapper around simple DTO on client side(Java/C++).
Although smart DTO-s are OK for only Java systems.