users@jersey.java.net

[Jersey] Re: Tutorial

From: Jake Daniel Collins <jake_at_gmail.me.uk>
Date: Thu, 7 Mar 2013 09:16:28 +0000

Have you tried the getting started hello world example?

http://jersey.java.net/nonav/documentation/latest/user-guide.html#getting-started

You can annotate your resource methods to tell Jersey to return JSON, eg,

@Produces(MediaType.APPLICATION_JSON)

Hope that helps get you started,

Jake

On 7 March 2013 07:12, William Kinaan <w.kinaan_at_gmail.com> wrote:

> Hello,
> I have a java class with many methods,
> I want this class to be a web service,
> I want to call those methods from client
> I want to use JSON as a returned value from each methods,
> is that possible? if yes please give me a good tutorial
> Thanks in advance
>