Export once, deserialize on subsequent restarts

Robert DiFalco <[email protected]>
Newsgroups gmane.comp.java.sun.rmi
Message-ID <[email protected]>
Ok, this should be simple to do but I can't seem to figure it out. 

NOTE: I do not want to use RMID, ActivatableRef, or JINI.

All I want to do is export a stub for a server the first time it starts,
send that server's stub to a client, and have that client can keep a
persistent reference to it. Serializing the stub is easy on the client
side. It's the serialization on the server side that is tricky since I
don't know how to deserialize it in a way that it gets the same object
table id.

So to restate, what I can't figure out how to do (without RMID
activation stuff) is to generate a stub once, serialize it locally, and
then on subsequent restarts, use the same serialized stub so that it
always has the same id in the object table. I see RemoteProxy.getStub
takes an ID as a parameter, but it is in sun.rmi.*, is this class
present on all JVM implementations? Am I on the right track?

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.