Marcus,

Your suggestion is one of the the things the Foodsmart example does. We use
Monson-Haeful's "business interface" idea, and have the beans sub-class
this. Clients don't care that they're talking to beans. They're talking to a
"service".

-Chris.

> -----Original Message-----
> From: Marcus Ahnve [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, April 07, 2000 12:12 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: 'local' entity beans vs dependent objects
>
> > With your approach, if I put in my client the domain objects that wrap
> > the EJB objects, then I have lots of EJB connections being made to the
> > server over that slow link to service each of the EBeans.
>
> The point, at least mine, is to have an independent interface, and then
> use EJB to implement that interface. No one has mentioned not using
> session beans, they are far too useful preventing what you are
> mentioning. But instead of having your session bean client - applet,
> jsp, servlet, application - make a direct call with all the
> InitialContext.lookup etc you wrap that code with an object that has an
> EJB independent interface. That way you are EJB independent from a
> client point of view. And since the session bean is a client to the
> entity bean, let it call a wrapping object too. In the end you will have
> all layers isolated and EJB independent.
>
> Laird, are these your thoughts too, or am I way off?
>
> And of course, it's only in theory so far.
>
> Regards
>
> /Marcus
>
> Marcus Ahnve
> Sun Java Center
> Sweden
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to