Here is the code , is being called, what am I missing?
final ServerContainer serverContainer = (ServerContainer)
event.getServletContext().getAttribute(javax.websocket.server.ServerContainer.class.getName());
also tried
final ServerContainer serverContainer = (ServerContainer)
event.getServletContext().getAttribute(“javax.websocket.server.ServerContainer”);
System.out.println(" \n\n ******** HERE IN CONTEXT INITIALSED with
container serverContainer" + serverContainer + " \n\n");
From: [email protected] [mailto:[email protected]]
On Behalf Of Joakim Erdfelt
Sent: Wednesday, July 30, 2014 4:33 PM
To: JETTY user mailing list
Subject: Re: [jetty-users] web.xml and jsr 356 end points
JSR-356 does not support adding websocket endpoints via web.xml or via servlets.
Go read up on javax.websocket.server.ServerContainer (both the object and the
ServletContext attribute)
You'll have a few choices:
* javax.websocket.server.ServerEndpoint Annotation scanning
* javax.servlet.ServletContextListener
* javax.websocket.server.ServerApplicationConfig
--
Joakim Erdfelt <[email protected]<mailto:[email protected]>>
webtide.com<https://urldefense.proofpoint.com/v1/url?u=http://www.webtide.com/&k=wdHsQuqY0Mqq1fNjZGIYnA%3D%3D%0A&r=4KNgn7IIPPl%2FiXDqTbxNPRf1lg2QQE5WxGK6NVGDZ5E%3D%0A&m=45AWHEbO8FzINGxzYLhy8xJHYoh76fC0lhNMJHhnTtw%3D%0A&s=0662f8ab1024c4a2d351e9719dc781b5400855bf47116547a39adeb29365679e>
-
intalio.com/jetty<https://urldefense.proofpoint.com/v1/url?u=http://intalio.com/jetty&k=wdHsQuqY0Mqq1fNjZGIYnA%3D%3D%0A&r=4KNgn7IIPPl%2FiXDqTbxNPRf1lg2QQE5WxGK6NVGDZ5E%3D%0A&m=45AWHEbO8FzINGxzYLhy8xJHYoh76fC0lhNMJHhnTtw%3D%0A&s=986b95f1b6b2f1fb8087ac8ce54c32fe7c40d46ee88d1799cfc15c62474ec812>
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty<https://urldefense.proofpoint.com/v1/url?u=http://eclipse.org/jetty/&k=wdHsQuqY0Mqq1fNjZGIYnA%3D%3D%0A&r=4KNgn7IIPPl%2FiXDqTbxNPRf1lg2QQE5WxGK6NVGDZ5E%3D%0A&m=45AWHEbO8FzINGxzYLhy8xJHYoh76fC0lhNMJHhnTtw%3D%0A&s=3d3cf6dd7a2d6597961bf513bf02ecfc691478387b227d3abbae1ea6987e9887>
-
cometd.org<https://urldefense.proofpoint.com/v1/url?u=http://cometd.org/&k=wdHsQuqY0Mqq1fNjZGIYnA%3D%3D%0A&r=4KNgn7IIPPl%2FiXDqTbxNPRf1lg2QQE5WxGK6NVGDZ5E%3D%0A&m=45AWHEbO8FzINGxzYLhy8xJHYoh76fC0lhNMJHhnTtw%3D%0A&s=1a696f2af9dc7b95311b3e74dad81e2334850d7290d6a403e5457b0f9c6f5f80>
On Wed, Jul 30, 2014 at 1:24 PM, Padki, Anuradha
<[email protected]<mailto:[email protected]>> wrote:
Hello all,
I can get the jsr356 working by manually adding the endpoints to the
servletContainer as
wscontainer = WebSocketServerContainerInitializer.configureContext(context);
WebSocketServerContainerInitializer.configureContext(context);
wscontainer.addEndpoint(MySocket.class);
However, I already have a jetty project that uses jetty.xml and web.xml for all
other servlets, so I am trying to figure out how to add the end points via
web.xml
Any help is greatly appreciated.
Regards
Anu
_______________________________________________
jetty-users mailing list
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users<https://urldefense.proofpoint.com/v1/url?u=https://dev.eclipse.org/mailman/listinfo/jetty-users&k=wdHsQuqY0Mqq1fNjZGIYnA%3D%3D%0A&r=4KNgn7IIPPl%2FiXDqTbxNPRf1lg2QQE5WxGK6NVGDZ5E%3D%0A&m=45AWHEbO8FzINGxzYLhy8xJHYoh76fC0lhNMJHhnTtw%3D%0A&s=729568ad509cef2c513e3a0480f1c689cb1e3a037056b0d10044d48ef7510605>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users