Tag Archives: jersey

JAX-RS 2.1 Server Sent Events

If you find this post better-worded (and grammatically correct) compared to the usual standard on this blog, its because the text below is part of the proposed JAX-RS 2.1 specification, which was authored┬áby Santiago :) If you want to provide … Continue reading

Posted in java | Tagged , , , , | Leave a comment

JAX-RS 2.1 Reactive Client API

I’m happy to announce that I was selected to replace Marek as JAX-RS co-spec lead. Meaning that I’ll have something to blog about during next moths, most likely until JavaOne 2017. If you are following discussions within┬ávarious specifications, you might … Continue reading

Posted in java | Tagged , , , , | Leave a comment

WebSocket vs REST

As controversial or potentially “flame starting” topic this might seem to be, don’t worry. I will approach this purely from pro-WebSocket view and the comparison with REST will be done on the sample, which heavily favours WebSocket ;) Not that … Continue reading

Posted in java | Tagged , , , , , , | Leave a comment

Jersey – Automatic XML schema generation for WADL

Gerard Davison contributed to Jersey one (last!) thing which is needed for generating client based on returned wadl – he managed to add XML schemas which describe returned (or accepted) types. See more details in his blog post: Auttomatic XML … Continue reading

Posted in java | Tagged , | Leave a comment

Jersey – Server and Client side configuration

Originaly this was supposed to be something what are we lacking in our user guide – list of all init params plus at least one sample to each one.. but I wasn’t able to finish it yet (and its on … Continue reading

Posted in java | Tagged | Leave a comment

Jersey non blocking client

Although Jersey already have support for making asynchronous requests, it is implemented by standard blocking way – every asynchronous request is handled by one thread and that thread is released only after request is completely processed. That is OK for … Continue reading

Posted in java | Tagged , , | Leave a comment

Limiting threads used for asynchronous requests – Jersey Client

Jersey Client already has support for making asynchronous requests, but it uses default ExecutorService, which spawns new thread for each request, which is not very convenient in most of cases. You can set your own ExecutorService (see Client.setExecutorService()) and limit … Continue reading

Posted in java | Tagged , , , | Leave a comment

Jersey Client – Apache HTTP Client 4.x integration

Since this week, Jersey users can benefit from Apache HTTP Client 4.x integration. “jersey-apache-http-client4″ module has been finalized and provides similar functionality as “jersey-apache-http-client”, but make sure you read javadoc – most of settings have changes because of major change … Continue reading

Posted in java | Tagged , , | Leave a comment

Jersey – Grizzly 2.x integration

Since today, Jersey users can benefit from Grizzly 2.x integration. “jersey-grizzly2″ module has been finalized and provides same functionality as “jersey-grizzly” and new test framework module was added – “jersey-test-framework-grizzly2″, which also became default test container for nearly all our … Continue reading

Posted in java | Tagged , , | Leave a comment

Code coverage using Cobertura

We were requested to investigate and implement code coverage measurement and report generation to our project – Jersey. Nice opportunity to get into new thing and have a motivation to finish (since this was a “must do” type of request..). … Continue reading

Posted in java | Tagged , , , | Leave a comment