Well that's a good point. I was using a looser definition of "facade".

Erik


N G wrote:

On Thu, 03 Mar 2005 12:03:27 -0500, Erik Weber <[EMAIL PROTECTED]> wrote:


Well, a facade is supposed to be a black box, so you shouldn't have to,
for example, do an EJB lookup, to use the facade. It's supposed to be
easily accessible from any implementations of the next higher layer (in
other words, it makes stuff pluggable).



Actually, I think you are thinking about a Business Delegate pattern, not Facade. Usually, a Stateless Session Bean serves as you Facade and you would definitely have to do an EJB lookup on that.

Bisiness Delegate, on the other hand, can hide what type of business
objects you are using, so *it* would be the place to do the lookup or
call your ServiceLocator class to do the lookup for you.

NG

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to