Custom advertisement discovery solution?
[email protected] Sat, 20 Aug 2005 20:59:16 +0300
| Newsgroups | gmane.comp.java.jxta.user,gmane.comp.java.jxta.devel,gmane.comp.java.jxta.general |
|---|---|
| Message-ID | <200508202059.16347.ggeorgak__7671.0351663225$1124560813$gmane$org@uth.gr> |
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