Re: problem with distribuited events
John McClain <[email protected]> Sun, 13 Apr 2008 16:36:31 -0400
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <[email protected]> |
Bulzan Stefan wrote: > Hello, > > I'm using Java 1.6. > I'm using a locale JavaSpaces space. > > If I don't export the object using UnicastRemoteObject.exportObject() from > the constructor or from the caller the next exception is thrown: Whatever you do you need to export the object. I don't know if this you problem (it doesn't seem consistent with the exception from your first message, do you have the stack trace for that exception?), but I think you will run into it eventually. I assume you are using the default exporter when setting up the space (you are using the default if you aren't setting serverExporter configuration entry in Outrigger's configuration file). By default Outrigger uses JERI. JERI doesn't support automatic stub replacement, but from the code in your first message it looks like you are relying automatic stub replacement to make things work. See this message : http://swjscmail1.java.sun.com/cgi-bin/wa?A2=ind0305&L=jini-users&P=R12099 for details about automatic stub replacement and how to adjust your code, but the short form is that exportObject() returns the stub, you need to save stub and pass the stub to notify method, not the listener itself. Hope this helps =========================================================================== To unsubscribe, send email to [email protected] and include in the body of the message "signoff JAVASPACES-USERS". For general help, send email to [email protected] and include in the body of the message "help". To view past JAVASPACES-USERS postings, please see: http://archives.java.sun.com/archives/javaspaces-users.html