摘要: 转: 使用Java NIO编写高性能的服务器 http://tenyears.iteye.com/blog/40489 View Code packagenio.file;importjava.io.FileInputStream;importjava.io.IOException;importjava.net.InetSocketAddress;importjava.nio.ByteBuffer;importjava.nio.CharBuffer;importjava.nio.channels.FileChannel;importjava.nio.channels.SelectionKey; 阅读全文
posted @ 2012-07-15 18:14 wasp 阅读(333) 评论(0) 推荐(0) 编辑
摘要: Bootstrapping TomcatThe bootstrapping process is actually rather simple. All we have to do is:1、Set up the environment variables required by this Tomcat instance2、Instantiate the general class loaders that will be used for our running Tomcat instance3、Initialize this Tomcat instance4、Parse the main 阅读全文
posted @ 2012-07-15 17:02 wasp 阅读(600) 评论(0) 推荐(0) 编辑