Re: no such object in table
Mark Brouwer <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
Rikard Elofsson wrote: > Mark Brouwer skrev: >> This means that at the JVM you exported your service the RMI runtime is >> still listening on that port (the client is able to connect to), but the >> object once exported (your service) has gone. The exception you get >> means the RMI runtime can't find a service with a particular object >> identifier. > > Thanks! I really need to learn not to be sloppy about object > references... I'll read up on DGC but thanks so far for the help! Rikard, FYI personally I don't enable DGC as I want to have my service up regardless of whether there are any consumers any given moment and it has some drawbacks as stated in the specs. I always make sure an exported object is strongly referenced so it won't be GCed (actually the framework I'm using does that for me but the idea stays the same). I think Gregg and Dan discussed this subject recently, but I'm not able to find the reference to that discussion that quickly, maybe they can provide a pointer. -- Mark -------------------------------------------------------------------------- Getting Started: http://www.jini.org/wiki/Category:Getting_Started Community Web Site: http://jini.org jini-users Archive: http://archives.java.sun.com/archives/jini-users.html Unsubscribing: email "signoff JINI-USERS" to [email protected]