users@jersey.java.net

RESTful Smart Client

From: Ido Ran <ido.ran_at_gmail.com>
Date: Thu, 14 May 2009 19:32:16 +0300

Hello,
I'm developing an application using Glassfish V2 which has two modules: EJB
and Web (RESTful).
The Web module expose RESTful resources which are backed by EJB session
and/or entities.

As a client I have a .NET application which communicate with the web-module
using standard HTTP. and everything is working good.

The thing is I currently missing two important pieces which
maybe compliment to each other. The pieces are notification (signal that
something has changed on the server and the client need to be updated), the
other piece is cache on the client side.

I've done some research on the web about notification in REST architecture
and the answer I've got is there are non, or in other words it can be
implemented using polling.
That's what make me think maybe cache is the answer.
Since I have a smart client, meaning an application which store state, not
only get the state from the server and present it, I have the ability to
cache the server answer on the client side and poll on the server every now
and then (I'll leave the time span for someone more close to the customers
than me).

So, finally, the question is how jersery can help me implement cache by
means of etag, modified-since and other built-in (or need to be implemented
by me) features.

Thank you,
Ido.