|
James Todd[Gonzo] :: Consistently Random
[rss] java == platform independence xml == application independence jxta == network independence |
[ [ gonzo@java.net ] [ jxta ] [ myjxta ] [ planetsun ] [ java.net ] [ java.sun ] |
| "Ice Cube said check yourself before you wreck yourself, Placebo say hang on to your IQ." | ||
|
jxta :: tip of the day [tod] :: chat about it
configuring jxta is easy enough, what about specializations? this entry touches upon the optimizer interface and how one can inject specialized logic into the jxta configuration process. The optimizer feature of ext:config allows one to register app specific configuration optimization logic via a simple and well defined interface that can also be manged via a Profile, ie declaratively. One can add or remove as many optimizers as relevant to the task at hand. One such optimizer was the results of a discussion whereby it was suggested that it is more efficient to deregister RendezVous if one is going to use a Relay service. Taking that use case into consideration, here is the corresponding logic: Implement an optimizer:
Next up, register the newly created optimizer with the respective profile by adding the following information:
Lastly, bind this profile to AbstractConfigurator and you have now taylored your JXTA configuration process. When considering one's JXTA deployment requirements there are likely a few optimizations that will come in handy and by using the above process the task of specializing the configuration process is easily achieved and infinitely extensible. The "configuration" support within the profile supports passing nested name-value parameters as well, as implemented with the default RelayOptimizer:
MyJXTA :: use it - learn it - do it
Java == platform independence in my ears: RadioHead/Kid A/Optimistic [2005-04-27 20:10:34.0] Permalink Comments [0]
Trackback URL: http://blogs.sun.com/gonzo/entry/jxta_tip_of_the_day1
Comments:
Post a Comment: |