Thank you very much for this Greg. No problem for us to wait a bit longer before moving to Jetty 10 considering 9.4 is serving us as well as it is.

Cheers,

Sillvio

On 3/15/21 6:32 PM, Greg Wilkins wrote:
Silvio,

yes the jetty websocket API has been significantly revisited in jetty-10.   We believe that we have added significant improvements as a result and have been waiting for the major release to make such a breaking change.

We definitely will continue to support our API going forward, due to deficiencies and complications of the JSR API.  So if your use-case is not already supported, then we will definitely look to see if we can.  Lachlan Roberts is the lead developer of websocket now and hopefully will get back to you with pointers to servlet based upgrade (which I'm 99% sure is supported).

cheers






On Mon, 15 Mar 2021 at 18:25, Silvio Bierman <[email protected] <mailto:[email protected]>> wrote:

    Some time ago I extended our embedded Jetty (9.4.36) based server
    application to support websockets using the Jetty websocket API.
    At this
    time we want to revisit our previously successful efforts making the
    application compatible with Jetty 10. But it seems the websocket
    API has
    changed quite significantly and many of the classes in
    org.eclipse.jetty.websocket.servlet and
    org.eclipse.jetty.websocket.api
    (notably WebSocketServletFactory, WebSocketCreator,
    ServletUpgradeRequest and ServletUpgradeResponse) appear to be
    missing
    or have been moved/renamed. So now we use the websocket API it
    appears
    porting to Jetty 10 has become much more difficult, let alone
    managing a
    code-base that allows us to swap one in for the other.

    We picked the Jetty websocket API since it allows us to handle the
    request upgrade at the Servlet level (inside the service method)
    while
    the javax.websocket API upgrades to websockets at the context
    level and
    is therefore of nu use to us. I hope this is still possible in the
    revised Jetty websocket API but can not find any documentation
    about how
    to rewrite 9.4.x based code to the new 10.x version.

    I can live with not being able to switch back to Jetty 9 without
    recompiling.

    Can anyone give me some pointers?

    Kind regards,

    Silvio
    _______________________________________________
    jetty-users mailing list
    [email protected] <mailto:[email protected]>
    To unsubscribe from this list, visit
    https://www.eclipse.org/mailman/listinfo/jetty-users
    <https://www.eclipse.org/mailman/listinfo/jetty-users>



--
Greg Wilkins <[email protected] <mailto:[email protected]>> CTO http://webtide.com <http://webtide.com>

_______________________________________________
jetty-users mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

_______________________________________________
jetty-users mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to