Re: Using lookupService()

Daniel Evers <[email protected]> Tue, 19 Dec 2006 22:00:40 +0100
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello Mark,

> My experience is limited to searching for service instances on the local peer,
> whereby I use lookupService() effectively.  I have not read the platform
> source code in this regard, but I always assumed the result came out of an internal
> hashtable that gets populated when you "set" the various services via "params"
> on the new app peergroup.

That's what I know, too.

> iow, the lookup does not do any sort of network discovery.  And if it
> did, you'd sort of be looking at some sort of RMI scheme whereby you
> either pulled bytecodes from the network for purposes of executing them
> locally, or you actually do some sort of RMI on them.  This is way off
> in the weeds, sorry.  But that's what it sounds like you're thinking.
> I could be wrong.

Too bad ... Seems like Mike's answer is pointing in the right direction
here.

> One cannot acquire advertisements published via newgroup.DiscoveryService
> with the discovery service of some other group.  I don't think.

I don't think so, too. Glad to here there might be truth :)

> I advise turning your debug level up and look for indications that
> the platform cannot find the impl class whose log messages you believe
> are missing.

I think I'm not getting around debugging JXTA here to get into it. I'm
prepared to "eat" the code. ;o)

Thanks for help, I'll start debugging right away!

Daniel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFiFL4BHvLeozhC4kRAoBLAJ9h7RTjX2PW0j/LD8Ly/nAn4gE3xgCfbLwe
7etNTt1hfFeftIirqj1jk04=
=nDAY
-----END PGP SIGNATURE-----