users@jersey.java.net

Re: [Jersey] Need Java client for NetBeans "Restful Webservices from Entity classes"

From: John O'Conner <john_at_joconner.com>
Date: Wed, 14 Jan 2009 08:53:20 -0800

Even if JavaFX itself doesn't have anything for xml, it can easily use
all the libraries available from its host JRE or other jar file. So
all of the standard jaxb goodness should be there.

--
John
On 1/14/09, Paul Sandoz <Paul.Sandoz_at_sun.com> wrote:
> Hi Richard,
>
> You could reuse the convertor JAXB beans on the JavaFX client side, it
> would require an unnecessary dependency on the persistent API but it
> should be possible to do. The reason is that the server will for POST
> or PUT unmarshal an XML document to an instance of such a JAXB bean,
> which is then persisted, but the unmarshalling process does not make
> use of any persistence functionality.
>
> I do not know if JavaFX has any specific XML processing functionality.
>
> Paul.
>
> On Jan 13, 2009, at 11:41 PM, Richard Catlin wrote:
>
>> I used NetBeans/Jersey to generate a Restful Webservice from JPA
>> Entity Beans.  In my case I had two JPA Entities, which modeled a
>> one-to-many relationship.  NetBeans autogenerates the code for the
>> Restful Webservice, including "Converter" classes.
>>
>> I have a JavaFX client and would like to use the JPA Entities to
>> populate a Master/Detail table.  I know how to call the Restful
>> Webservice and get the response (via the JavaFX Media Browser
>> Tutorial). I want to know the easiest way to convert the response
>> back to the JPA object hierarchy.  Can I use the converter classes
>> generated on the server-side?
>>
>> Any help is appreciated.
>>
>> Richard Catlin
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>