I wanted to build myself a Web based chat application (something like hipchat or facebook chat)I think netty is the way for this since it is event driven, However. Netty does not have any servlet container. So How do I build my own servlet container for netty? or better yet how do you build your own ServletContainer?
Asked
Active
Viewed 2,742 times
1 Answers
2
Perhaps Netty is too low level for what you are trying to accomplish. If you want an embedded solution in which servlets can be executed, why not trying Jetty instead?

Akira
- 4,001
- 1
- 16
- 24
-
Is Jetty NIO/Event Driven? – user962206 Nov 16 '13 at 02:31
-
1It can be, and so can Tomcat. I suspect your concern is that you'll have many persistent connections open and thread per connection won't scale. You deal with this using either Netty or a servlet container that supports servlet 3.0 asynchronous API (pretty much all do). Which one you choose will depend on the programming model / API you're most comfortable with. – johnstlr Nov 18 '13 at 09:19