Hello András,
I have examples on my blog
http://javaevangelist.blogspot.com as well as,
links to some articles. The examples have various examples of using JSON,
and JSONP including with a database with JPA.
Your question is fairly general, but I think that you should be able to
handle it fairly easily if you have the entities in a library jar which can
be shared between the server and client. The jersey.java.net site has good
documentation. I would also suggest downloading the source code, which
includes a number of examples, and contributed examples.
John
____________________________
John Yeary
____________________________
<
http://javaevangelist.blogspot.com/> <
https://twitter.com/jyeary>
<
http://www.youtube.com/johnyeary>
<
http://www.linkedin.com/in/jyeary>
<
https://plus.google.com/112146428878473069965>
<
http://www.facebook.com/jyeary>
<
http://feeds.feedburner.com/JavaEvangelistJohnYearysBlog>
<
http://netbeans.org/people/84414-jyeary>
____________________________
"Far better it is to dare mighty things, to win glorious triumphs, even
though checkered by failure, than to take rank with those poor spirits who
neither enjoy much nor suffer much, because they live in the gray twilight
that knows not victory nor defeat."
-- Theodore Roosevelt
On Tue, Jan 10, 2012 at 3:51 PM, András Csányi <sayusi.ando_at_gmail.com>wrote:
> Dear All,
>
> This is my first letter for this list, so greetings for everybody! :)
> A few weeks ago I met this technology, I mean REST, and I like it very
> much! I started to work with resteasy from JBOSS team but
> unfortunately I found it too under-documented - I'm a weekend
> programmer because I'm a testing engineer originally - and I turned
> here. Long story short. I have a swing application which get data via
> REST. The rest interface at the server side get a List<EntityDTO>
> datatype. My question is that whether Jersey is able to handle this
> datatype using JSON protocol? The client is able to deserialize it?
> I've read a few articles about json deserialize issue regarding
> datatypes.
>
> My other question is that, what is the proper way to handle this
> datatype. If it is not possible than what would be the proper datatype
> in this case? It would be perfect for me if I get some blog entries
> because I like to learn by that way. I use EJB3.1, Beans and REST.
>
> Thank you very much in advance!
>
> András
>
> --
> - -
> -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu --
> http://facebook.com/andras.csanyi
> -- ""Trust in God and keep your gunpowder dry!" - Cromwell
>