I use WebSocketStompClient with GlassFish web socket contained called "Tyrus" in the next way:
WebSocketStompClient client; ClientManager clientMan