Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • the code resides in rt/transport/http-websocket and it enables cxf services to be invoked over websockets.
  • it supports both the embedded mode and the servlet container mode. The former can be used in the standalone setup that uses an embedded jetty server and the latter can be used in the container setup that uses the servlet container provided by the container.
  • some test cases are located in systests/jaxrs/.../websocketsrc/test/java/org/apache/cxf/systest/jaxrs/websocket and there is also a browser based demo at distribution/src/main/release/samples/jax_rs/websocket.
  • it requires several additional libraries to enable this feature depending on the usage. Concretely, it will require jetty-websocket for the embedded standalone mode (i.e., the endpoint is given with the host and port part as in address="ws://host:port/path"). For the servlet mode (i.e., the endpoint is given using a relative path (i.e., address="/path"), it will either require jetty-websocket to use jetty or require atmosphere-runtime and a specific websocket implementation such as jetty-websocket or tomcat-websocket to use that specific container.

...

we can add some js examples or update the logbrowser sample. There is a browser based demo in the samples collection (see above). This demo uses the current default binding which is not javascript friendly. To support browser based applications, we need different bindings.


TODOs of future interests

...