Y Hatsuyama wrote:
>
> Hi Everyone.
>
> I have a question about EJBObject for the Entity Bean.
>
> My problem is,
>   When does  Garbage Collector delete EJBObject ?

The term 'EJBObject' in this case is not well defined. I assume that you mean
an object on the server that delegates to a pooled instance. Depending on the
server architecture, such an object might or might not exist.

>   In life cycle diagram in the EJB spec,
>   home.finder method makes 'exist and not referenced' to
>   'exist and referenced' state.
>   And as a  reverse operation, release reference is
>   descirbed.
>
>   My understanding is DGC notifies to the server and
>   server can delete this object.
>
>   But in the case of RMI-IIOP, what way to notify ?

The answer to any such question depends on the server you are dealing with.
But generally, you shouldn't assume that the lifetime of the object reference
held by the client (or the client's view of the entity) has much in common
with the lifetime of objects that are used by the server to process client
requests. In the Sybase EAServer architecture, the client JVM garbage collects
the client's object references, and the server garbage collects (by pooling)
the component instances using user-configurable timeouts.
________________________________________________________________________________

Evan Ireland              Sybase EA Server Engineering       [EMAIL PROTECTED]
                            Wellington - New Zealand              +64 4 934-5856

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