[JXTA discuss] Re: [JXTA user] Custom advertisement discovery solution?
Mohamed Abdelaziz <[email protected]> Mon, 22 Aug 2005 13:00:14 -0700
| Newsgroups | gmane.comp.java.jxta.general,gmane.comp.java.jxta.user,gmane.comp.java.jxta.devel |
|---|---|
| Message-ID | <[email protected]> |
Custom advertisements can only be processed by those nodes which have registered an instantiator for the custom advertisement. Which basically means remotePublish does do any good, unless the receiver has a binding for the advertisement. However this does not preclude it from being discovered provided the appropriate indexes are defined, and the originating peer(s) exist on the network. Mohamed -- http://blogs.sun.com/roller/page/hamada http://weblogs.java.net/blog/hamada [email protected] wrote: >I remote publish a custom adv that I created using the wiki tutorial. In the >public netPeerGroup the discovery of this advertisement is impossible. After >creating a private net peer group and registering the type of my custom >advertisement using: > >class ChatAdv extends Advertisement >{ > static > { >net.jxta.document.AdvertisementFactory.registerAdvertisementInstance(getAdver >tisementType(),new ChatAdv.Instantiator()); > } >... >} > >by creating a "dummy" instance of the ChatAdv in my rendezvous peer, I was >able to discover my custom advertisement. Waiting for comments. > >Giorgis Georgakoudis > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [email protected] >For additional commands, e-mail: [email protected] > > >