One obvious utility of ejb homes is the finder methods. If the container did
it all we might end up with only findByPrimaryKey finders.

Rick Hansen

>-----Original Message-----
>From: David Chen [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, August 15, 2000 2:03 PM
>To: [EMAIL PROTECTED]
>Subject: Re: A newbie question: why home interface is needed?
>
>
>> The container will generate an implementation of your home
>interface which
>*is* an
>> EJBObject factory.
>
>Thanks Chris. I understand that an implementation will be
>generated. But why
>the interface is needed at the first place. The container
>should not have
>problem to associate the remote interface to the bean object. Could the
>client just ask the container to get a reference for a given remote
>interface?
>
>David
>
>
>----- Original Message -----
>From: "Bono, Chris" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, August 15, 2000 2:58 PM
>Subject: Re: A newbie question: why home interface is needed?
>
>
>> David,
>>
>> >>>But why the home interface is needed? Could
>> >>>its "create" responsibility be owned by some sort of
>factory object
>that
>> >>>represents the containers?
>>
>> The container will generate an implementation of your home
>interface which
>*is* an
>> EJBObject factory.
>>
>> -----Original Message-----
>> From: David Chen [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, August 15, 2000 1:26 PM
>> To: [EMAIL PROTECTED]
>> Subject: A newbie question: why home interface is needed?
>>
>>
>> Could someone tell me why a remote interface and a home
>interface has to
>be
>> created for each ejb bean? I understand that the remote
>interface probably
>> is required since it is undesirable to expose the bean class (with
>> implementation) to the client. But why the home interface is
>needed? Could
>> its "create" responsibility be owned by some sort of factory
>object that
>> represents the containers? And the client just asks it for
>the reference
>to
>> the bean with the remote interface name. It seems to me that it is
>simpler.
>> But I am sure that the home interface probably is required
>and designed to
>> work this way for some reasons that I don't know of. I would
>appreciate
>your
>> thoughts on this.
>>
>> Thanks in advance.
>>
>> David
>>
>>
>===============================================================
>============
>> 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".
>>
>
>===============================================================
>============
>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