users@jersey.java.net

Interlinking resources

From: Imran M Yousuf <imyousuf_at_smartitengineering.com>
Date: Wed, 25 Mar 2009 17:15:18 +0600

Hi,

I have a generic REST question and am wondering how to achieve it in
using JAX-RS and Jersey.

I would take an example to illustrate the scenario. There is a obejct
'A' which is a resource and there is 'B' which is also a resource Now
'A' has one or more 'B'. Now when resource 'A' is accessed it will
'have' 'B' as well, in terms of REST we would want them to referred to
using their respective URIs. Now my question is if I am using
JAXB/JSON for exporting my resources how can I achieve this?

Thank you,

-- 
Imran M Yousuf
Email: imran_at_smartitengineering.com
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557