[Jersey] Re: Implementing a REST endpoint in a standalone java app

From: Martin Matula <>
Date: Tue, 20 Sep 2011 16:40:05 +0100

Either use grizzly, or (if you want to keep you dependencies at minimum
to keep the app as small as possible) just use the HttpServer included
in JDK, like I did in this blog post to be able to receive an oauth

On 20.9.2011 15:03, Farrukh Najmi wrote:
> Hi Guys,
> I am wondering what is the best approach for implementing a REST
> endpoint within a standalone java app (say a Swing client). I am
> considering doing something along the lines of the
> com.sun.jersey.samples.https_grizzly jersey sample. Before I get too
> deep I wanted to check if this makes sense or if there is a better way.
> To provide some context, I have a swing client, many instance of which
> may be running on many machines. Each swing client needs to be kept
> synchronized with changes in my server in a scalable manner. My
> desired solution is to implement a pubsubhubbub
> <>
> subscriber within the Swing client to subscribe to an event feed
> within a hub that my server publishes the event feed to. Thus I am
> looking for a way to implement the subscribers rest endpoint within
> the swing client.
> Thank you for your help.
> --
> Regards,
> Farrukh Najmi
> Web: