Entries, ServiceTemplates, and JavaSpaces
Jeff Ramsdale <[email protected]>
| Newsgroups | gmane.comp.java.sun.javaspaces |
|---|---|
| Message-ID | <6E58A7C8A2126D44ACBC06D1DA24CFD1E3DA53@blv2-exc-01.siq.solutionsiq.com> |
We have an application that used to make direct RMI calls from a client to a service. Now we'd like to instead distribute our work using JavaSpaces. Previously we were using a ServiceTemplate to find appropriate agents and agents were registering their capabilities with a user-configurable set of properties (from a properties file) that were turned into entries. 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? 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? Thanks, 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/