AW: Getting Messenger
"Ferruh Zamangoer" <[email protected]>
| Newsgroups | gmane.comp.java.jxta.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
in JXTA-CMS in the GetContentRequest class they create the Endpointadress
like:
String addressStr =
"jxta://" + CMS.getPeerId(group) + "/CMS-GetRequest"
+ Integer.toString(getUnusedRequestID()) + "/"
+ CMS.getGroupId(group);
EndpointAddres address = new EndpointAddress(addressStr);
Take a look at this class.
Regards
Ferruh
-----Ursprüngliche Nachricht-----
Von: Volker Katz [mailto:[email protected]]
Gesendet: Mittwoch, 17. August 2005 14:46
An: [email protected]
Betreff: [JXTA user] Getting Messenger
Hi,
I've a problem sending a message to another peer. I got the peer's ID
out of his PeerAdvertisement. Then I use this code:
endpointService = myPeerGoup.getEndpointService();
EndpointAddress ep = new EndpointAddress(destinationID,null, null);
Messenger messenger = endpointService.getMessenger(ep, null);
if (messenger == null) throw new Exception();
[...]
messenger.sendMessage(jxtaMsg);
I never reach messenger.send(), because messenger is null. The docs tell
me, that null means, that ep is not reachable. But I got the peers
Advertisement and he got mine. So we see each other, but can't talk to
each other.
Have you got any hints?
Thanks and best regards
Volker
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]