wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Doubt about Petstore ������ Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Doubt about Petstore ������" Watch "Doubt about Petstore ������" New topic
Author

Doubt about Petstore ������

Jose Jim�nez
Ranch Hand

Joined: Jun 15, 2005
Posts: 101
In petstore application ShoppinClientController act how proxy and have a handleEvent method to process events, my doubt is that have getCustomerEJB(), .... methods . This method return EJBObject to client. Don�t is this one bad practise ?? Will more correct that client communicate whith a CustomerFacade for example and this have method that return ValueObject ??


SCEA<br />SCWCD<br />SCJP
Giju George
Ranch Hand

Joined: Jun 08, 2004
Posts: 333
I think petstore is using something like a "command pattern", and not facade pattern !!


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCEA
Jose Jim�nez
Ranch Hand

Joined: Jun 15, 2005
Posts: 101
Use ShoppingClientFacadeLocal.class. You need read the documents about petStore because yes use facade pattern �������

Too the views needs retrieval information from server so that I think that it need use bussinessDelegate + facade

How retrieval data with command patern from a view (jsp) �����������������
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Doubt about Petstore ������