aspose file tools*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes EJB  and pattern 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 "EJB  and pattern" Watch "EJB  and pattern" New topic
Author

EJB and pattern

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
EJBHome – Abstract Factory or Factory Method ?
EJBObject – Decorator or Proxy ?


SCJP<br />SCWCD<br />SCEA
Ajith Kallambella
Sheriff

Joined: Mar 17, 2000
Posts: 5782
IMHO
EJBHome - Abstract factory.
EJBObject - certainly not a proxy. Actually a wrapper, not a decorator.


Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).
Thomas Hofmann
Ranch Hand

Joined: Nov 23, 2002
Posts: 72
EJBObject is a decorator
Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
what is mainly different between proxy and wrapper?
Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
if the functions contributed by contained, such as security, transaction, are considered, ejbobject is like decorator pattern
Debanjana Dasgupta
Ranch Hand

Joined: Aug 11, 2000
Posts: 101
The RemoteInteface is Proxy
Thanks
Debanjana


Thanks<br /> <br />Debanjana<br /> <br />SCJP2<br />SCEA
Thomas Hofmann
Ranch Hand

Joined: Nov 23, 2002
Posts: 72
A proxy provides the same interface as the remote objects. Though the (container generated) stub on the cilent side is a proxy for the remote object. The client communicates only with stub. "Behind the scenes" the stub establishes all network stuff (opening socket to remote server, marshalling parameters, ...). The stub which implements the remote interface is the proxy for the EJBObject, not the interface itself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB and pattern