Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] javax.websocket.WebSocketContainer lifecycle issue on standalone

Hi,

On Tue, Dec 10, 2013 at 12:33 AM, Joakim Erdfelt <joakim@xxxxxxxxxxx> wrote:
> Jetty's implementation of javax.websocket.WebSocketContainer works great on
> the server side.
> However, on a standalone client, the lifecycle that WebSocketContainer
> starts keeps the main thread from shutting down.
>
> See
> https://github.com/joakime/jetty-web-sockets-jsr356/commit/8fda529c04775ed052ee5f10daa7a337ba035c61
>
> I'm not sure how to handle this in the standalone scenario, the
> ShutdownThread seemed like a good place to start, but I'm not having much
> luck getting it to work.

A shutdown hook seems the only way to go here... What exact problems
do you have ?

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.


Back to the top