Problem with Peergroup service creation
A month ago I finished reading Brendon Wilson's book about JXTA, and decided to implement a little JXTA application on my own, just to put things together...
It is a picture sharing app, which also gives the capability of chatting with other peers on the group. I decided to implement also the presence information service, as described in the book.
The problem is that code examples are a bit out of date, and they aren't working any more with JXTA 2.4.
I get a ServiceNotFoundException when I try to lookup the presence information service with the lookupService (ModuleClassID) method, as explained in chapter 10/11. I first tried with an unmodified version of the example, then I modified it to get partial rid of the deprecated parts and at last followed the "setUri" suggestion on http://forums.java.net/jive/thread.jspa?forumID=50&threadID=14339&messag..., but I'm still getting ServiceNotFoundException.
I know I'm asking something that was previously asked, but I haven't been able to find the correct answer and after 10 days of try'n'fail I'm a bit lost and confused.
Please, could anyone tell me which is the correct way of creating, registering and finding peergroup services with the 2.4 release of JXTA?
Thanks for paying me attention.