Re: What causes an object to be removed from the ObjectTable?
Robert DiFalco <[email protected]> Sat, 17 Dec 2005 08:45:28 -0800
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
I may be missing your point, but #exportObject is called in the UnicastRemoteObject constructor. All this does is create a target and add it to the ObjectTable anchored by a WeakReference. To keep that from being reaped, I would think you also need to keep a strong link to "this", say by binding it to the registry. R. -----Original Message----- From: Niclas Hedhman [mailto:[email protected]] On Behalf Of Niclas Hedhman Sent: Friday, December 16, 2005 8:11 PM To: Robert DiFalco; [email protected] Subject: Re: What causes an object to be removed from the ObjectTable? On Saturday 17 December 2005 07:09, Robert DiFalco wrote: > Unfortunately, I am binding "m_stub" and not "this". Why?? What is wrong with the normal exportObject() ?? Cheers Niclas =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff RMI-USERS". For general help, send email to [email protected] and include in the body of the message "help". For a list of frequently asked RMI questions please refer to: http://java.sun.com/j2se/1.3/docs/guide/rmi/faq.html To view past RMI-USERS postings, please see: http://archives.java.sun.com/archives/rmi-users.html