Re: Example code for JavaSpace05??

Jim Goodwin <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <LISTSERV%[email protected]>
Hello John, thanks for the answer.

I should have mentioned I'm using JRE 1.5.0_06.

I had no interesting experience with MatchSet, it just worked, out of the
matchbox [ta-dump]. My problems were to get _anything_ to work, whether
read, take, or anything else. Once I fixed that class loader issue, read,
write, take and MatchSet all seemed to work. The only thing that didn't was
notify.

That said, I did not exercise MatchSet (or anything else) very much yet, so
it's not a useful reading on any of those funky boundary conditions that
test the cases where delivery is not guaranteed or may be oddly sequenced or
anything. I just read all the entries that matched my template, and got all
three of 'em okay. I'll let you know of anything else interesting that may
happen with MatchSet.

I think the first reason notify is different is that it requires the server
to unmarshall my Entry, which hadn't been necessary before. Is that
plausible? And then it got tangled up because my Entry class had implemented
a marker interface that I forgot about, that had nothing to do with
JavaSpaces/Jini and wasn't in the codebase. I fixed that okay.

Then I hit the problem with my listener. I'll try your suggestion about
using the two-arg version of Unicast.exportObject.

Jim Goodwin

===========================================================================
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
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.