You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Davor Hrg <hr...@gmail.com> on 2007/07/19 12:29:53 UTC
AJAX, XML, POJO
Hi,
howard has mentioned he's taking on AJAX for T5 next.
In light of that and some projects I'm currently working on,
I've started writing a POJO serialization code to serialize
config from and to java, xml and JSON...
howeever there are several libraries doing this exact thing:
http://sojo.sourceforge.net/
http://json-lib.sourceforge.net/
http://xstream.codehaus.org/index.html
has anyone explored one of these,
can you recommend something else
Davor Hrg
Re: AJAX, XML, POJO
Posted by Paul Cooley <pe...@gmail.com>.
Be careful about XStream in general. We have had some serious problems here
with undiagnosable memory leaks. This thread might explain why.
http://www.nabble.com/PermGen-Space---OutOfMemory%2C-A-solution-tf3674694.html
On 7/19/07, Davor Hrg <hr...@gmail.com> wrote:
>
> I'was looking few days for libraries like that and it came down to xstream
> and sojo,
>
> finaly sojo seems most attractive since xstream is xml centric in desing
> and
> goals (to get json it uses xml as intermediate).
>
> sojo handles
> xml,
> json,
> POJO, or Beans
> core java(HashMap/List/Integer...)
>
> Bean->HashMap conversion can be an useful intermediate for a
> parser/serializer,
> or for apache xmlrpc.
>
> sojo is also rather new, and it can be a risk for tapestry to depend on
> it.
>
> anyhow, sojo approach seems very attractive to me, and I hope a similar
> library will be used, or similar approach will be taken in T5 (something
> with generics and Annotations perhaps).
>
> Davor Hrg
>
>
> On 7/19/07, D&J Gredler <dj...@gmail.com> wrote:
> >
> > I've heard good things about XStream, but I haven't used any of them
> > personally.
> >
> >
> > On 7/19/07, Davor Hrg <hr...@gmail.com> wrote:
> > >
> > > Hi,
> > >
> > > howard has mentioned he's taking on AJAX for T5 next.
> > > In light of that and some projects I'm currently working on,
> > > I've started writing a POJO serialization code to serialize
> > > config from and to java, xml and JSON...
> > >
> > > howeever there are several libraries doing this exact thing:
> > > http://sojo.sourceforge.net/
> > > http://json-lib.sourceforge.net/
> > > http://xstream.codehaus.org/index.html
> > >
> > > has anyone explored one of these,
> > > can you recommend something else
> > >
> > > Davor Hrg
> > >
> >
> >
> >
> > --
> > Daniel Gredler
> > http://daniel.gredler.net/
> >
>
--
Gotta find my destiny, before it gets too late.-- Ian Curtis
Re: AJAX, XML, POJO
Posted by Davor Hrg <hr...@gmail.com>.
I'was looking few days for libraries like that and it came down to xstream
and sojo,
finaly sojo seems most attractive since xstream is xml centric in desing and
goals (to get json it uses xml as intermediate).
sojo handles
xml,
json,
POJO, or Beans
core java(HashMap/List/Integer...)
Bean->HashMap conversion can be an useful intermediate for a
parser/serializer,
or for apache xmlrpc.
sojo is also rather new, and it can be a risk for tapestry to depend on it.
anyhow, sojo approach seems very attractive to me, and I hope a similar
library will be used, or similar approach will be taken in T5 (something
with generics and Annotations perhaps).
Davor Hrg
On 7/19/07, D&J Gredler <dj...@gmail.com> wrote:
>
> I've heard good things about XStream, but I haven't used any of them
> personally.
>
>
> On 7/19/07, Davor Hrg <hr...@gmail.com> wrote:
> >
> > Hi,
> >
> > howard has mentioned he's taking on AJAX for T5 next.
> > In light of that and some projects I'm currently working on,
> > I've started writing a POJO serialization code to serialize
> > config from and to java, xml and JSON...
> >
> > howeever there are several libraries doing this exact thing:
> > http://sojo.sourceforge.net/
> > http://json-lib.sourceforge.net/
> > http://xstream.codehaus.org/index.html
> >
> > has anyone explored one of these,
> > can you recommend something else
> >
> > Davor Hrg
> >
>
>
>
> --
> Daniel Gredler
> http://daniel.gredler.net/
>
Re: AJAX, XML, POJO
Posted by D&J Gredler <dj...@gmail.com>.
I've heard good things about XStream, but I haven't used any of them
personally.
On 7/19/07, Davor Hrg <hr...@gmail.com> wrote:
>
> Hi,
>
> howard has mentioned he's taking on AJAX for T5 next.
> In light of that and some projects I'm currently working on,
> I've started writing a POJO serialization code to serialize
> config from and to java, xml and JSON...
>
> howeever there are several libraries doing this exact thing:
> http://sojo.sourceforge.net/
> http://json-lib.sourceforge.net/
> http://xstream.codehaus.org/index.html
>
> has anyone explored one of these,
> can you recommend something else
>
> Davor Hrg
>
--
Daniel Gredler
http://daniel.gredler.net/