Hi, and thanks all for your answers.
Kyle, nice documents!
So, using Facade Pattern I will have:
Client [in my app. a servlet] that ask for data to a Session Stateful EJB [facade].One per use case.
Facade calls Stateless session beans.
And these stateless EJB have DAO for DB calls.
Then the facade returns a serializable object to the servlet that uses it with jsp to generate the view.
Is it right?
So, must I make one DAO per DB query?
Is it better to create the "Java serializable objects" that facade forwards to the servlet inside the DAO itself or return the resultset to the session bean which will create the object.
[ January 30, 2002: Message edited by: cardiac0 ]