今天把 jaxb 返回的 xml 对象 转到了 lucene 的 document .
然后仍给 index search 一把。还算顺利搞定。
接下来开始解决网络接口。
写一个基于netty的索引服务器。接收client仍过来的xml数据包。
关于netty的资料除了
[url]http://www.jboss.org/netty/[/url]
还有一部分中文的。
[url]http://www.w2tt.cn/viewthread.php?tid=85[/url]
大致看了一遍,编码的思路还是相当清晰的。
主要的工作在继承 [quote]org.jboss.netty.channel.SimpleChannelHandler[/quote]
后重写部分方法来实现。
另外要说的就是第一次看到一个新的 import 写法。
这样也可以。
[color=red][url=http://www.jboss.org/netty/documentation.html]这个地址里基于多种协议的 example.[/url][/color]
在下载的 netty src org.jboss.netty.example 中有相应代码
然后仍给 index search 一把。还算顺利搞定。
接下来开始解决网络接口。
写一个基于netty的索引服务器。接收client仍过来的xml数据包。
关于netty的资料除了
[url]http://www.jboss.org/netty/[/url]
还有一部分中文的。
[url]http://www.w2tt.cn/viewthread.php?tid=85[/url]
大致看了一遍,编码的思路还是相当清晰的。
主要的工作在继承 [quote]org.jboss.netty.channel.SimpleChannelHandler[/quote]
后重写部分方法来实现。
另外要说的就是第一次看到一个新的 import 写法。
import static org.jboss.netty.buffer.ChannelBuffers.*;
这样也可以。
[color=red][url=http://www.jboss.org/netty/documentation.html]这个地址里基于多种协议的 example.[/url][/color]
在下载的 netty src org.jboss.netty.example 中有相应代码