users@jersey.java.net

Re: [Jersey] Passing objects in Jersey Service.

From: RajKal <rajkal23_at_yahoo.com>
Date: Thu, 17 Dec 2009 07:56:01 -0800 (PST)

Could any one help on my request.

Thanks,
Raj

--- On Wed, 12/16/09, RajKal <rajkal23_at_yahoo.com> wrote:

> From: RajKal <rajkal23_at_yahoo.com>
> Subject: [Jersey] Passing objects in Jersey Service.
> To: users_at_jersey.dev.java.net
> Date: Wednesday, December 16, 2009, 4:48 PM
> Writing a web app that can be used as
> an application as well as service to return a employee
> detail object. Method takes 2 objects as input and one
> boolean variable. I want below method to be used in the app
> and the same method to serve as restful service.
>
> Is this correct approach or do I need to do anything else?
> Also I need to know how I can test with the browser or any
> client? When I am trying to access it to with the below url
> it gives me 404 -not found error.
>
> http://localhost:7001/jersey/detail/result
>
>   @GET
>   @Path("/result")
>   @Produces( { "text/xml"}) 
>   public EmployeeDetail getResult(@Context Employee
> employee, @Context User user, @Context boolean
> isSSNRequired) throws Exception {
>  
>   return employeeDetail;
>   }
>
>
>
>
>      
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>