Netty inside Tomcat (or Jetty) ?
Trustin Lee (이희승)
trustin at gmail.com
Sun Sep 20 21:53:41 EDT 2009
Hi Elemer,
Netty has been designed to run in various environments. If should
work fine with a web application server, applet, android needless to
say all J2SE environments. I see no problem with embedding Netty
inside a web application server.
HTH
— Trustin Lee, http://gleamynode.net/
On Thu, Sep 10, 2009 at 9:25 AM, Elemer Pixard <elpix1 at gmail.com> wrote:
> Hi,
>
> I am developing a server which has two types of clients:
> - people, browsing using HTTP and
> - devices, transferring data using HTTP (j2me phones)
> and socket communication with binary protocol (proprietary devices,
> android phones).
>
> I intend to use Tomcat or Jetty for the servlet/JSP container and
> Netty for the socket server.
> I would prefer to have only one process to serve both HTTP and socket
> communication.
>
> I have successfully instantiated a Netty server (and also previously a
> Mina server) inside
> Tomcat by specifying a listener in "web.xml" which is invoked before
> any servlet.
> This listener creates an instance of a Netty server.
> I have made very simple tests to check if the socket server was working
> inside Tomcat (one or two simultaneous connections).
> The socket server channel handlers will access the same database that
> the http clients use (using the same connection pool, not tested yet).
>
> This unified approach seems very convenient because with just the
> web application WAR jar or directory the whole server (http and socket server)
> can be deployed.
>
> Do you see any problem in doing this or it would be preferable to develop an
> stand alone server program for the socket server ?
>
> Best regards.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
More information about the netty-users
mailing list