users@jersey.java.net

Re: [Jersey] Bidirectional communication

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Mon, 21 Sep 2009 11:47:28 -0700

On Mon, Sep 21, 2009 at 11:29 AM, Gili <cowwoc_at_bbs.darktech.org> wrote:
>
> Hi,
>
> Has there been any discussion of implementing bidirectional RESTful
> communication (aka callbacks or P2P nodes) as mentioned here?
> http://joshua.schachter.org/2008/07/beyond-rest.html
>
> Ideally we want an ultra-light HTTP server on each node. What do you
> recommend? Jetty? Is there anything lighter?

Unless your nodes are specifically resource constrained, I think all
current servlet containers (like Jetty, Tomcat) are quite
light-weight. Their reputation is worse than reality. Both Jetty 6 and
Tomcat 6 are quite nice, but full featured (i.e. know how to use http
1.1 persistent connections and alike), so I would start with one of
them.
Jetty has traditionally been slightly easier to embed so that's a good
choice. But Tomcat 6 has come a long way and is embeddable too.

-+ Tatu +-