You getGifts method is annotated with @GET only,
@Path annotation is missing there, which makes it a resource method.
HTH,
~Jakub
On 20.12.2011 11:05, Jordan Blay wrote:
> Thanks
>
> So how come my @GET method was only AbstractResourceMethod?
>
> This is my code:
>
> @Component
> @Path("/gift")
> public class GiftResource {
>
> protected @Context
> UriInfo uriInfo;
>
> @GET
> /**
> * Get list of gifts available
> * @return
> */
> public Collection<Gift> getGifts(@QueryParam("category") String categories,
> @QueryParam("amount") Integer amount) throws RemoteException,
> ServiceException {
> return null;
> }
>
> }
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/AbstractSubResourceMethod-vs-AbstractResourceMethod-tp7111166p7111294.html
> Sent from the Jersey mailing list archive at Nabble.com.
>