• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Proxy pattern

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is EJBObject and EJBHome an example of Proxy pattern?
 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought EJBObject for a Session bean can fall under Session Facade pattern because it is an interface to the Session bean. Is this analysis ok ? Also using the same logic, can the same EJBObject for an Entity bean be considered as a Business Delegate pattern ?
Please advise under which pattern EJBObject and EJBHome should fall.
 
Roman Rytov
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that SessionBean itself can't be considered as an example of SessionFacade. Because the idea of Facade is to agragate access to several different objects through itself or to faciliate complexity of calls. That means that in a certain architecture it may became SessionFacade but only if it's implemented in this idea in mind. I mean we can't say that any SessionBean implements SessionFacade pattern.
BusinessDelegate is a form of proxying intercommunications btw. cliens and servers (or end-server) and it maybe implemented either by Proxy or Adapter strategy.
EJBHome is a Poxy in pure form.
 
zack ma
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBObject for Proxy pattern, EJBHome for Abstract Factory pattern
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic