Achieving HATEOAS with JAXB
Over the past few days, I've been working to familiarize myself with the various technologies used to implement RESTful web services. After reviewing several different approaches on the web, I decided to annotate my resource objects and return them, allowing Jersey and JAXB to translate the POJO into the appropriate MIME type. I am very impressed with how simple it was to use.
Now that I have a POXy-like attempt at a RESTful web service, I'd like to take it to the next level and apply the premise of HATEOAS. The problem I see, however, is that there is really no way to embed the links necessary to make the generated xml/json file properly descriptive of the actions available in the representation.
What techniques have JAXB users employed to achieve HATEOAS?