Evan,

-----Original Message-----
From: Evan Ireland <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, May 17, 1999 9:53 PM
Subject: Re: Entity no more expensive than Session: WAS: findLargeAccounts -
w hy bother?


>Imre Kifor wrote:
>
>> With Java 2 the situation changes drastically. A Java 2 based server can
>> hold on to entity objects with "weak" references, thus allowing unused
>> entities to be collected automatically. As you already know, being able
to
>> create entities on the fly dramatically increases server resident data
reuse
>> and decreases unnecessary session object creations and maintenance. The
>> downside? One would say DGC. However, DGC is used regardless whether you
>> access session or entity objects. Actually, chances are that with entity
>> references you will need less DGC since you are passing around fewer
remote
>> references.
>
>And in this case, how do you avoid GCing entity objects where the
>client only hold a Handle for the entity as opposed to an EJBObject
>for the entity?


You don't. The handle will recreate the object (if it was collected) from
the PK when necessary.

Imre Kifor
Valto Systems

===========================================================================
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