Skip to main content

Simple JXTA Server problem.

1 reply [Last post]
kadirb
Offline
Joined: 2008-06-18
Points: 0

Hi , I've tried to do simple Message JXTA Server ,
Lets say 4 person is behind a network , to make communication between all 4 person.
I've made 1 JXTA_RELAY_SERVER code :
Netbeans 6.1 Code : http://www.l2wolf.com/jxta/JXTA_RELAY_SERVER.zip

Its just supplying communication between all peers.

I've made message pipe server , which is acting as virtual server and opening JXTA Message Server :
http://www.l2wolf.com/jxta/JXTA_MESSAGE_SERVER.zip

I've made message pipe client , which is acting as virtual client and opening JXTA Message Client :
http://www.l2wolf.com/jxta/JXTA_MESSAGE_CLIENT.zip

Message Server <=> JXTA_RELAY_SERVER <=> (Message Clients) x 3

But I cant make communication between Server and Clients,
Whats the problem ? I couldnt solve.
I've debugged codes , they skip on

joinPeerGroup
It cant join peer group...
Please help!!!

AuthenticationCredential authCred = new AuthenticationCredential(subPeerGroup , null , creds);

MembershipService membership = subPeerGroup.getMembershipService();

net.jxta.membership.Authenticator auth = membership.apply(authCred);
//isReadyForJoin returning false!!! Why ??? I couldnt solve
if (auth.isReadyForJoin()) {
membership.join(auth);
} else {
System.out.println("unable to join sub PeerGroup");
}

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
adamman71
Offline
Joined: 2007-01-31
Points: 0

Hi,

You can take inspiration from the examples available at www.practicaljxta.com to set-up the Membership Service (see Chandra & Dimitri).

Cheers,

J.