jQuery in Action, 3rd edition
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Proxy 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 "Proxy pattern" Watch "Proxy pattern" New topic

Proxy pattern

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Is EJBObject and EJBHome an example of Proxy pattern?

Sudd Ghosh
Ranch Hand

Joined: Oct 23, 2002
Posts: 187
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

Joined: Jun 04, 2001
Posts: 75
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

Joined: Feb 07, 2002
Posts: 20
EJBObject for Proxy pattern, EJBHome for Abstract Factory pattern

I agree. Here's the link: http://aspose.com/file-tools
subject: Proxy pattern
It's not a secret anymore!