Tuesday Jan 13, 2015

Reactive Jersey Client

One of the common problems of synchronous applications is that they are not using resources in an efficient manner. In a synchronous application, it often happens, for example, that threads are blocked waiting for something to happen.  That is clearly not efficient!  On the other hand, asynchronous applications allows to better utilize those threads but this often comes at a price as it is not that easy to write (complex) asynchronous applications.  Writing asynchronous applications involve having to deal with nested callbacks, the famous "callback hell".  And if the level of nested callbacks is too deep, it can also be very tricky to properly handle errors within the application, etc.

Reactive programming is a popular paradigm used to develop more easily asynchronous applications; it is based around data flows and changes propagations.  This Reactive approach also leads to be more maintainable too as the code is easier to write and understand.

Michal Gajdos of the Jersey Team has just written a series of posts introducing the 'Reactive Jersey Client API', a new generic API allowing end users to utilize the popular reactive programming model when using Jersey Client. 

Friday Sep 16, 2011

Jersey 1.9.1 & Grizzly Async (HTTP) Client integration

With the release of Jersey 1.9.1, "conference-driven development" (CDD) is not an empty word. In his blog post Martin shares the Jersey-based JavaOne OAuth Hands-on Lab requirements that lead to this release while the full release notes are here.

ALT_DESCR ALT_DESCR

Meanwhile, Grizzly 2.x is making good progress and the latest trunk includes integration of Jean-François' Async HTTP Client Library (AHC). Ryan, from the Grizzly team, details the status of the ongoing work on his blog, including plans for a Grizzly bundle that includes the HTTP Codec library (grizzly-http), the AHC library and its Grizzly provider. This should all be out in stable form by Grizzly 2.2.

Tuesday Jul 05, 2011

Jersey experimental work : true non-blocking client

Pavel Bucek has been working on support for true non-blocking client support in Jersey. This frees developers from having to manipulate threads (which would result in poor use of resources anyhow) and is based on Jean-François Arcand's Async Http Client (AHC).

original photo from http://www.flickr.com/photos/storm-crypt/2889441616/

This is still experimental work at this point but could change rapidly if the feedback is positive and constructive. Note that the client API is part of the JAX-RS 2.0 scope.

Sunday Mar 06, 2011

GlassFish 3.1 SOTD #6 - Monitoring Scripting Client

In this sixth post of the SOTD (Screencast Of The Day) series following the release of GlassFish 3.1, here is Tom's Monitoring Scripting Client.

This is a feature that is part of Oracle GlassFish Server Control which comes bundled with Oracle GlassFish Server and available for free trial.

This 8-minute demo shows how this scripted monitoring command (asadmin run-script) can operate on a 2-instance cluster (setup included in the demo) using one of the 100+ fine grained probes defined in JavaScript. This is a supported version of the technology previously made available in beta form and which now obviously has been extended to clustered environments.

This screencast is hosted on the GlassFish YouTube Channel.

Friday Mar 04, 2011

GlassFish 3.1 SOTD #5 - Load-balancing with GlassFish plugin for Oracle iPlanet Web Server

In this fifth post of the SOTD (Screencast Of The Day) series following the release of GlassFish 3.1, here is John's Load-Balancing for GlassFish 3.1 which he's discussed on his blog.

This is a feature that is part of Oracle GlassFish Server Control which comes bundled with Oracle GlassFish Server and available for free trial.

This is actually a 5-part series showing :
an intro and downloads of all the artifacts (glassfish, web server and load-balancer)
installing GlassFish and creating a cluster
installing the web erver (including setting up the self-signed certificate)
installing the load-balancer plugin (graphical installer, includes DAS certificate file configuration)
testing high-availability of a deployed application

You can also read Configuring HTTP Load Balancing from the Oracle GlassFish Server documentation set and find more screencasts hosted on the GlassFish YouTube Channel.

Wednesday Jan 28, 2009

SmugMug Client Using Jersey

ALT DESCR

Jakub has posted a sample for how to use the client API for Jersey and has used the REST interface to SmugMug as an example. Check out Jakub's writeup, Paul's Original Blog and the JavaDoc.

Other posts on the topic are tagged as jersey. Also check the slides, screencasts and recordings of Paul and Marc's webinar on Jersey and JAX-RS.