Re: Entries, ServiceTemplates, and JavaSpaces

Jeff Ramsdale <[email protected]>
Newsgroups gmane.comp.java.sun.javaspaces
Message-ID <6E58A7C8A2126D44ACBC06D1DA24CFD1E3DA75@blv2-exc-01.siq.solutionsiq.com>
> What prompted the thoughts of changing to a JavaSpace?  This 
> could be important to solving the problem the "right" way....

We wanted to have agents working jobs distributed from a master
process after which they would be returned to the master. Seemed like
the usual use-case for JavaSpaces.

> > With JavaSpaces it seems we lose the ability to register for 
> > notification via a ServiceTemplate, and instead must offer a
single 
> > Entry instance with a pre-defined set of fields. First 
> question then:
> > does my grasp of the situation seem correct? Second: Is 
> there no way 
> > at runtime to configure an Entry with dynamic properties?
> >
> 
> Yes,  you're correct.
> 
> Can't think of a way to do the dynamic properties thing - 
> were you matching on a subset of an Agent's Entry attributes 
> or all attributes?

The idea was that I could configure properties from the master that
would be a subset of an agent's properties. That is, the agent would
fully describe its capabilities and the master would pick the subset
it cared about. Specifically, we might specify a version of Java or an
OS or a even a hostname. In fact, these three properties were
automatically set on our agents but the user could optionally add more
properties in a standard properties file.

> > Alternatively the agents can register for notification of a
generic 
> > Entry's appearance at which point they can check a Map on the
Entry 
> > for matching criteria. I'm sure this has been done? Sounds 
> like a bit 
> > of a pain, though, to implement one's own matching 
> criteria--is there 
> > something already written to do this and is this the 
> recommended way 
> > to do what we're trying to do?
> >
> 
> I can think of a few possibilties but I'd prefer not to waste 
> your time with them until I know a bit more about why you 
> want to do this.

Understood. Fire away!

> Happy Easter,

Same to you, Dan!

> Dan.

Jeff

| Jeff Ramsdale |
|   SolutionsIQ |
|  Bellevue, WA |
 

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

JDC members can download the JavaSpaces(tm) Technology from:
http://developer.java.sun.com/developer/products/jini/
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.