`
cuizhenfu#gmail.com
  • 浏览: 65813 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
占位
The adhoc configuration avoids all use of rendezvous servers. Instead it relies on IP multicast. This works well on local subnets but it is very difficult for peers to locate each other across the Internet. If your peers will be widely distributed on different networks then it will be necessary to us ...
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 y ...
现象:启动tomcat后,控制台报 log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded).log4j:WARN Please initialize the log4j system properly.然后没有任何输出,但是web系统可正常访问解决方法adding log4.properties file to $CATALINA_HOME/common/classeslog4.properties文件 log4j.rootLogger=INFO, R   ...
http://forums.java.net/jive/thread.jspa?messageID=226543 Using discovery for presence is not a good idea. I was told so also by a JXTA guru that shall remain unnamed His recommendation to me which I plan to follow is to simply use a bidipipe connection. that is, keep a list of peers you want to kee ...
在实现自定义服务时,我们很可能会依赖其它服务或核心服务,在这种情况下,要求自定义服务的启动必须在依赖服务启动之后。例如我们在ResolverService服务之上实现自己的服务,就是说我们的服务要使用ResolverService来实现自己 ...
jxtaserviceexample.SimpleServiceTest 测试类,执行该类可以看到,新建的group提供了SimpleService服务,并且通过该group获得该服务,并执行服务提供的alert方法。 jxtaserviceexample.impl.protocol.SimpleServiceImpl 服务的实现类 jxtaserviceexample.protocol.SimpleService 服务接口,仅增加了alert方法,供测试用 jxtaserviceexample.util.GeneratorID 用于生成Service所需的各种ID
驯服 Tiger: 并发集合 Java 理论与实践: 并发集合类 Java 理论与实践: JDK 5.0 中更灵活、更具可伸缩性的锁定机制
Concurrent Programming in Java<concurrent programming="" in="" java="">第二版中1.1.1.1中介绍了3条简单的规则以避免冲突问题 </concurrent> 当更新对象域的时候总是锁定 当访问可能更新的对象域的时候总是锁定 当调用其它对象方法的时候总是锁定 这些规则有很多例外,但是作为基本规则,我们在设计多线程程序的时候需要时时考虑记得 Concurrent Programming in Java这本书很好,由于在 ...
第一个jxta程序,可以在同一个子网内聊天。还有一些bug,主要是线程处理方面。希望对大家有所帮助,如果有什么建议或问题,请跟贴提出。用户界面使用SWT/JFACE,这部分不必过分关注,毕竟我们用得是JXTA:) 我的开发环境: jdk-1_5_0_12 eclipse3.3 swt designer6.4.0(方便导入swt,jface包,只要建一个SWT/JFACE java project工程就可以了) fatjar用于打包(看着打包后的程序双击就可以运行就是爽)
要求1.5.0_b4以上(不包括1.5.0_b4),否则运行时会抛异常(可以正常编译),所以尽量使用最新的jdk做开发。
最近用jxta写一个局域网聊天程序,当是练练手吧,界面部分使用swt+jface。一直在找一个可以支持swt+jface,打包以后可以直接运行的插件,因此就找到了fatjar。即使你用到了swt+jace,用它打包后照样可以运行的很好。 说一下我的开发环境 jdk-1_5_0_12 eclipse3.3 swt designer6.4.0(方便导入swt,jface包,只要建一个SWT/JFACE java project工程就可以了) fatjar用于打包(看着打包后的程序双击就可以运行就是爽) 顺便说一下,java的东西真是耗内存啊,最简单的程序,用fatjar打包后也要10M内存:)
http://www.ibm.com/developerworks/cn/opensource/os-eclipse-brand/index.html
Arrays.fill(buffer,(byte)0);
同样的代码,在rc1运行时正常,在rc2第一次运行正常(控制台比rc1输出了好多信息),再次运行时抛出异常后退出 java 代码   2007-8-8 13:09:26 net.jxta.impl.peergroup.GenericPeerGroup loadModule   警告: Initialization failed   net.jxta.exception.PeerGroupException: Could not load module for : urn:jxta:uuid-EE7CE2ADD9B7497191C3C6DF46EB72B65961626 ...
Global site tag (gtag.js) - Google Analytics