wood burning stoves*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Difference between DTO factory and Session Facade Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Difference between DTO factory and Session Facade" Watch "Difference between DTO factory and Session Facade" New topic
Author

Difference between DTO factory and Session Facade

Varun Kukreti
Greenhorn

Joined: Feb 01, 2007
Posts: 7
Hello Everyone,

I am going through the book EJB design patterns by Floyd Marinescu ,which i downloaded from http://www.theserverside.com .I am unable to distinguish between Session Facade and DTO Factory design patterns .

Can anyone who has gone through these design patterns ,help me out.
Thanks in advance .
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Before EJB, the Facade pattern provided a simple, unified API to clients so that clients didn't have to know about the swarm of busy little implementation objects that might be inside a component. With EJB, the Session Facade does all that plus it provides the remote interface for clients and can use all the features of the EJB container - security, transactions, etc. And it can be a stateful bean if you like. A lot of people like to have a very few Session Facade beans and use Plain Old Java Objects behind them. The POJOs can have minimal or no dependency on the container, making them simpler, easier to test and easier to reuse.

I haven't read up on DTO factory but from the name, I'd say it just creates DTOs.

Do those sound different enough?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Varun Kukreti
Greenhorn

Joined: Feb 01, 2007
Posts: 7
Stan ,thanks for the reply .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between DTO factory and Session Facade
 
Similar Threads
EJB Design Patterns
Patterns for home and remote objects
Session facade pattern
about a very BIG confusion in design pattern.
Questions needed