4

I have written a simple client to test my Web Service, but I am investigating the possibility of using the JBoss Netty framework, rather than blocking sockets, in order to increase the number of concurrent connections I can make to the Web Service.

I understand that JBoss itself uses Netty, but I am using Tomcat (for the time being) and have no knowledge of it. Has anyone done this, or used something similar?

4

2 に答える 2

6

他の誰かの Socket 処理ライブラリを Tomcat に統合しようとする代わりに、Tomcat の NIO サービスを有効にしてみませんか? Tomcat 6.0 へのアップグレードが必要になる場合がありますが、JBoss の使用経験によっては、より簡単な解決策になる場合があります。

于 2011-02-25T15:52:57.897 に答える
3

実装では Netty とMINAの両方を使用しました。どちらも、基礎となる Java NIO クラスをラップして、物事を少し簡単かつ簡潔にします。2つを比較するとき、Nettyを使用しました。Netty の方が少し簡単で、NIO をより強力に使用できることがわかりました。この2つの記事をよく比較しているので、こちらの記事をご覧になることをお勧めします。

于 2011-03-05T16:49:37.353 に答える