Re: Problems with Entrys

CORMIER Mario <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <E1288A899288BA4FB59BD7B90994DD18026D5682@ca-ops-mail>
You can have partial matches by selectively leaving some fields in your
Entry templates null, meaning you don't care about the specific value of
that field.  This is explained (although it's not made completely
obvious) in the document you refer to.

One limitation that does exist (also outlined in the document) is that
the fields you do specify must match exactly.  This means you can't ask
for all printers that can print at 600dpi or above, for instance.  In
that case you need to leave that field null, get all the printers that
match your other criteria (no matter their resolution), and then filter
the list on the client side as required.

Hope this helps...

Mario Cormier

-----Original Message-----
From: levmatta [mailto:[email protected]] 
Sent: Wednesday, September 5, 2007 16:34
To: [email protected]
Subject: Problems with Entrys

Greg asked me:
Entry objects are pretty core to Jini's lookup approach, as well as
JavaSpaces.  What is it you don't like about them?

Answer:
Basically the fact the comparison is done on their serialized form, and
consequentially that their is no partial matches.
Also, please note that Entrys are used for transporting user interfaces,
I know that their are some problems with that.

I am no expert so please refer to
http://jan.newmarch.name/java/jini/tutorial/Entry.xml.

Basically I would like partial matches,
Best Regards

PS: Some time ago, i came across a discussion on the problems of
ServiceUI related to lack of control of the class loading (since it is
slow, because of resources). Sorry for the lack of detail.

------------------------------------------------------------------------
--
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:
http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to
[email protected]

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
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.