• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Proxy pattern

 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is EJBObject and EJBHome an example of Proxy pattern?
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
EJBObject for Proxy pattern, EJBHome for Abstract Factory pattern
 
this is supposed to be a surprise, but it smells like a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic