Thierry:

I looked through that example code, but I think it is not quite what I'm looking
for.  Those examples seemed to all be on the client side.  What I'm looking for
is the server side code.

Here's what I'm basically trying to do:  I'm replacing an existing application
that has a web application and provides web services using Axis to other
applications.  The code retrieves items from a relational database, and presents
the data either to a user (via the web app) or to client applications via Java
web services (via Axis).  

Rather than add to the existing Axis code to support the client applications,
I'd like to replace that with Restlets.  The entities that I have to return do
have some structure that I'll need to maintain (e.g., Genes contain one to many
Transcripts, which contain one to many Proteins), and some of the use cases are
such that the user wants everything to do with a single Gene.  For performance
reasons, I certainly don't want to do dozens of round-trips to the server to get
the entire hierarchy.  So I'm considering return data as XML.

So on the server side, I'm starting with a small network for Java objects that I
have retrieved from the database (using Hibernate).  I need to convert that XML
and return the XML.  I'm NOT starting with static XML files and don't want to
write out XML files, only to read them back in as DOM objects.

Where I'm confused looking at Restlets is how I create the representation on the
server side.

Thanks,

Jared

Reply via email to