Hi,

I'm trying to port an existing Jetty 9.0 websocket implementation to
javax.websocket.

I'm creating a WebSocketContainer using
  WebSocketContainer container = ContainerProvider.*getWebSocketContainer*
();
which will pick up an instance of ClientContainer/ServerContainer.

What is the preferred way to shut down the container again seeing that
WebSocketContainer does not have lifecycle methods?

((org.eclipse.jetty.util.component.ContainerLifeCycle) container).stop();
works but depends on the Jetty implementation.

Cheers
  Kasper
_______________________________________________
jetty-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to