ServerRef with persistent ObjID
Robert DiFalco <[email protected]> Wed, 15 Feb 2006 07:37:58 -0800
| Newsgroups | gmane.comp.java.sun.rmi |
|---|---|
| Message-ID | <[email protected]> |
Well, I tried to avoid this but it seems like I need to figure out how to create one of my services (essentially my server-service) with an ObjID that is consistent over restarts of the JVM. The reason is that when clients have a cached stub to a server, and that server is restarted, a client will sometimes fail with a NoSuchObjectException in a way that is not reliably retry-able. I know this is possible with RMID, but can someone instruct me how to do it without RMID? I was hoping it would be as simple as serializing the ObjID if it was not already serialized, if it was, deserialize and reuse it during export. I figured I would just look at the RMID code and copy what it did, but there is a bunch of other stuff going on so I was hoping someone could just give me the skinny on preserving and reusing an ObjID when not using RMID. NOTE: The ObjID does not necessarily need to be "well-known" a priori, just consistent across JVM restarts. TIA, R. =========================================================================== 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