`
cuizhenfu#gmail.com
  • 浏览: 67458 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

manager.setUseDefaultSeeds(true);

阅读更多
forums.java.net上的一篇帖子
http://forums.java.net/jive/thread.jspa?threadID=31823&tstart=15

Using public Rdvs and Relays, provided by JXTA community was the default setting for JXSE 2.4.1 tutorial. This is changed for JXSE 2.5 to reduce the traffic!

Both nodes (DiscoveryServer, DiscoveryClient) of your jxta network must be known to a Rdv (and to relay too, if they are behind NAT/firewall). The easiest way for that:

In constructors of classes, representing the client and server, before call to manager.startNetwork() add the following statement:
manager.setUseDefaultSeeds(true);
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics