If you are using the "HTTP Service Jetty" implementation, then I have gotten websockets to work within an Apache Sling context by following a variation of the instructions in the jetty documentation at [1] for the WebSocket impl and [2] for an "upgrade" servlet. For the [2] upgrade servlet, I used the @Component annotation to register the servlet as an OSGi service instead of using the @WebServlet annotation from their example. It might work with @WebServlet as well, but I did not try that.
1. https://www.eclipse.org/jetty/documentation/jetty-9/index.html#jetty-websocket-api-annotations 2. https://www.eclipse.org/jetty/documentation/jetty-9/index.html#_the_jetty_websocketservlet Regards, Eric On Thu, Jan 19, 2023 at 11:11 PM Roy Teeuwen <r...@teeuwen.be> wrote: > Hey all, > > I'd like to create a websockets servlet in Apache Felix and I'm searching > for good examples. > When trying to install a standard websocket example using javax.websocket > as package, I see that the package is not provided by default with Apache > Felix. Is there any way I can use the HTTP Service to active my endpoint > annotated with @ServerEndpoint? > > Greets, > Roy > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@felix.apache.org > For additional commands, e-mail: users-h...@felix.apache.org > >