Skip to main content

newbie: join group

1 reply [Last post]
vpdn
Offline
Joined: 2006-07-26
Points: 0

Hello everyone,
I'm new to the jxta community and have a newbie question.
I managed to create a subgroup of the netpeer group and would now like to join the group from another computer which also is logged into the jxta network.
I can find the group, but don't know how to join it. In the example provided on the jxta homepage, the joinGroup function expects an argument of the type PeerGroup. But how do I retrieve the PeerGroup if lets say I have the PeerGroupID?

Hope someone can help. Thank you a lot in advance.

Cheers,
Vinh

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tra
Offline
Joined: 2003-06-16
Points: 0

> Hello everyone,
> I'm new to the jxta community and have a newbie
> question.
> I managed to create a subgroup of the netpeer group
> and would now like to join the group from another
> computer which also is logged into the jxta network.
> I can find the group, but don't know how to join it.
> In the example provided on the jxta homepage, the
> joinGroup function expects an argument of the type
> PeerGroup. But how do I retrieve the PeerGroup if
> lets say I have the PeerGroupID?
You need to fetch the Peergroup advertisement associated
with the peergroup Id, and use the peergroup advertisement to instantiate and join this peergroup.

Hth,

B.
>
> Hope someone can help. Thank you a lot in advance.
>
> Cheers,
> Vinh