Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Fwd: BOSH on ebmedded Jetty - server side.


On Tue, Jul 23, 2019 at 6:05 PM Sergey O <osnsergey@xxxxxxxxx> wrote:
> According to BOSH ( where a persistent connection is used. We would like to implement BOSH on Jetty.

You don't need to do anything special to implement BOSH in Jetty, and
BOSH does not mandate the use of a _single_ connection, so it can be
implemented in HTTP/1.1.
However, it's a lot of work and typically requires another protocol on
top (e.g. XMPP).

I suggest that, unless you have to implement a Jabber server, you look
into CometD (
It has already implemented long-polling (which is basically BOSH), and
uses Bayeux as a higher level protocol.

Basically everything is already done for you, you just have to use
CometD rather than going the hard route and have to implement BOSH

Simone Bordet
Developer advice, training, services and support
from the Jetty & CometD experts.

Back to the top