Layer7 API Management

Expand all | Collapse all

Websocket support for JSR-356

Jump to Best Answer
  • 1.  Websocket support for JSR-356

    Posted 11-30-2016 10:21 PM
      |   view attached



    I'm having issues creating a simple websocket  connection with a simple web socket application (doing echo). The code for my server is attached (Just a simple echo service).


    When connecting directly from the client to the server, it works fine (able to echo). However, when connecting through the API GW, it fails to reply, does not invoke the outbound connection and prematurely closes the connection.


    Has anyone been able to implement the websocket connection with Java 7 websocket implementation?


    Thanks in advance


    zip   603B 1 version

  • 2.  Re: Websocket support for JSR-356
    Best Answer

    Posted 12-01-2016 05:36 PM

    Hi sharkkae,

    Did you use the default websocket come with MAG?

    In another case, I saw it's not compatible with a jetty websocket server(same symptom as your test), but after I replaced it with the tactical websocket assertion, it's working perfectly.

    I believe the tactical websocket assertion is much up-to-date, and worth a try. 

    Please open a support ticket to ask for the tactical websocket assertion.




  • 3.  Re: Websocket support for JSR-356

    Posted 12-01-2016 05:44 PM

    Also, I was wondering if the websocket connection is configured properly, the default websocket connection is working fine with public echo server:  ws://

    If your websocket connection on gateway is not working for the public ws echo server too, then it maybe only a configuration problem.

  • 4.  Re: Websocket support for JSR-356

    Posted 12-01-2016 08:13 PM

    Hi Mark,


    I was able to get it to work with the public echo websocket but not with my Java implementation of it. For Jetty websocket, I understand there are few ways of implementing it, mat I know which way is supported ?


    The working public service had me thinking on what exactly the current assertion required and if implementing a more primitive implementation of web socket might work.


    Will definitely raise a ticket to the tactical websocket assertion. Hope to get the reason for its inability to work with JSR 356

  • 5.  Re: Websocket support for JSR-356

    Posted 12-22-2016 06:32 PM



    Please note that version 9.2 of the CA API Gateway, that was released today, has all the tactical improvements included in it.




    Stephen Hughes

    Director, CA Support