I'm running JOnAS 1.6 with java.rmi.server.codebase Property. The
codebase points to a http Location, so the Class Files (the Stubs of my
Beans) are distributed through an Apache Webserver. This RMI Feature is
very useful because I don't have to copy the Interface Classes manually
each time i changed them.
Problem:
I have to store the retrieved Handle Object on the Client. I'm
serializing it with an ObjectOutputStream:
Handle h = remote.getHandle();
FileOutputStream f = new FileOutputStream("File.tmp");
ObjectOutputStream stream = new ObjectOutputStream(f);
stream.writeObject(h);
stream.flush();
f.close();
If I try to deserialize my Handle with an ObjectInputStream I'm getting
a ClassNotFoundException. The Client can't find the Stub Class because
it's not in the local Classpath. The Client doesn't try to load the
Class via Webserver. It seems to me, that the deserialized Handle Object
has lost the codebase Link.
Has anyone experience with this ?
Tobias
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".