Multiple JXTA peers on one JVM for multiple identities
I've been reading this thread: http://forums.java.net/jive/message.jspa?messageID=366618, about running multiple JXTA instances in one VM. I have an interest in this, but for different reasons than unit testing, etc. I believe that if P2P networking is going to take off, in tandem with social networking, then users will need different partial identities in different operating contexts. However, if each partial identity uses the same PeerID for communications, then they can easily be linked together by a cursory examination of advertisement traffic.
Partial identities are 'views' of the user's real identity, that the user chooses to express in different contexts.
For example, the me_at_work and the me_with_my_friends partial identities will tend to have different attributes and social networks. If these social networks can be ascertained by traffic watching then it's a big privacy concern.
So, what is required to solve this problem is the ability to operate as different peers with different PeerIDs, different PeerGroups, etc., all within the same JVM -- preferably within the same JXTA instance up to a point. There are generic/static objects that you would prefer were only loaded once for performance reasons.
I'd be interested in hearing the views of JXTA developers on this issue, and whether it is something that on the face of it is easily achieved. It'd would be great if it were just a case of doing without NetworkManager and kicking things off in a more generic way.