JAX-RS Kryo Message Body providers are placed to Jersey incubatorApril 24, 2015 jaxrs jersey kryo
I have good news, mine JAX-RS Kryo support has been moved to Jersey incubator.
You can just add dependency on the module and your application can produce and consume application/x-kryo entities:
Original GitHub repository has been updated to use Jersey module. And as a bonus I've added two ways how to try it.
This is true since Jersey 2.18. The version was not released yet in time of writing this blog post. So you need to use 2.18-SNAPSHOT version and add Maven snapshot repository to your project:
Grizzly itMaven packaging of this demo application is
war. But it is possible to run the application using Grizzly HTTP container:
You can enable
Jetty itOr you can run it as common webapp using Jetty container:
Again, you can enable FINEST logging using logging.properties:
Check itGET method is available at URL http://localhost:8080/, check it using
Response should look like: