Design - JXTA implementation
I started reading some literature about JXTA.
Now I want to find some answers, before I do a design for an application.
Purpose: create a P2P community. The community can be divided in more groups. A peer can be member of more groups.
Being a pure distributed application, with no centralized control, i still need some things clear.
Q1. What is actually a group service?
In the Network there can be more groups, each one with specific needs.
If a peer joins my group, how can he access my groups specific services? The peers need to have the software components locally that will handle service invocations? Can the services related components be downloaded?
Q2 Group service - invoke upon who?
The invocation of a group service is done on a Group, and all the peers in the grouped will be queried?
Or you can invoke the service upon a single peer in the group?
Q3. Design Group services or Peer Service?
In the case of more groups which actually are very similar, but they just want to restrict access. The functionality should be designed and impelemnted as Peer services (all peers having the same services) or Group Service
Q4. Group Authentication
When a peer joins a group, it authenticates against who? Who does the credentials checking?
How can 2 peers know that they are authenticated in the same group?
Q5 Design related
When the application starts, i want to connect to different groups. These groups are very different in their nature.
should I create a Peer for each group and join? Should I join with the same peer all the Groups? How can I make the difference that a message was received from one group or another?