• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB and pattern

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBHome – Abstract Factory or Factory Method ?
EJBObject – Decorator or Proxy ?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IMHO
EJBHome - Abstract factory.
EJBObject - certainly not a proxy. Actually a wrapper, not a decorator.
 
Thomas Hofmann
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBObject is a decorator
 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is mainly different between proxy and wrapper?
 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if the functions contributed by contained, such as security, transaction, are considered, ejbobject is like decorator pattern
 
Debanjana Dasgupta
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The RemoteInteface is Proxy
Thanks
Debanjana
 
Thomas Hofmann
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic