Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Services client using Java NIO (Netty?)

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?

like image 249
trojanfoe Avatar asked Jan 20 '23 09:01

trojanfoe


2 Answers

Instead of trying to integrate someone else's Socket handling library into Tomcat, why not turn on Tomcat's NIO services? It may require upgrading to Tomcat 6.0, but depending on your experience with JBoss it might be a easier solution.

like image 196
Edwin Buck Avatar answered Feb 03 '23 18:02

Edwin Buck


We have used both Netty and MINA in our implementations. Both wrap the underlying java NIO classes to make things a bit easier and concise. We went with Netty when comparing the two. We found that Netty was a bit easier and provided us more powerful uses for NIO. I'd suggest taking a look at this post as it has a pretty good comparison of the two.

like image 32
Scott Avatar answered Feb 03 '23 18:02

Scott