Re: Getting Messenger
"Giorgos Georgakoudis" <[email protected]>
| Newsgroups | gmane.comp.java.jxta.user |
|---|---|
| Message-ID | <012c01c5a3bb$b9756ea0$0100000a@ggeorgakhome> |
> 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);
I had the exact same problem with you, perhaps the ID EndpointAddress
constructor is problematic. Try this, it works for me:
EndpointAddress endpointAddress=new
EndpointAddress("jxta",thisPeer.getPeerID().getUniqueValue().toString(),svcN
ame,svcParams);
I guess svcName and svcParams are null for you.
Best regards,
Giorgis Georgakoudis