Demo application uses Jersey/JAX-RS Message Body Writer and Reader using Kryo serialization framework
Build the application:
mvn clean installMaven packaging of this demo application is war. But it is possible to run the application using Grizzly HTTP container:
mvn exec:javaYou can enable FINEST logging using logging.properties:
mvn exec:java -Djava.util.logging.config.file=target/test-classes/logging.propertiesOr you can run it as common webapp using Jetty container:
mvn jetty:run-warAgain, you can enable FINEST logging using logging.properties:
mvn jetty:run-war -Djava.util.logging.config.file=target/test-classes/logging.propertiesGET method is available at URL http://localhost:8080/, check it using curl:
curl -v http://localhost:8080/Response should look like:
> GET / HTTP/1.1
> User-Agent: curl/7.40.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Length: 20
< Content-Type: application/x-kryo
< Server: Jetty(8.1.16.v20140903)
<
Salzbur�*Wolfgan�
The Jersey Kryo support started as a "friday project" and now is part of Jersey project, currently as incubator module.
Evolution of the Kryo support shows list of blog posts: