pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Martini <sandro.mart...@gmail.com>
Subject Re: SV: pivot network performance
Date Tue, 18 Oct 2011 21:40:04 GMT
Hi, another suggestion:
you can try to use some library to convert (all server-side) your domain
objects to json, and return it to Pivot app ... latest Spring should have
something, or cxf, or other json library.

Sandro
 Il giorno 18/ott/2011 16:58, "Sandro Martini" <sandro.martini@gmail.com> ha
scritto:

> Ok, now at least we know where the problem is ...
> Take a look at this (old) article:
> http://java.sun.com/developer/technicalArticles/Programming/serialization/
> could give you some help.
>
> Maybe you could try to change the way Java serialize your classes,
> with some persistence delegate, or looking at custom serialization
> through java.io.Externalizable or through writeObject, readObject,
> writeReplace, readResolve or any other special serialization method.
>
> Your domain objects are linked directly to JPA or other persistence backend
> ?
> If yes, maybe you can transform your classes in a simpler (flat)
> hierarchy containing only "standard" types (Stringd and standard
> wrappers), and see if this helps (as should).
> Or transform any domain object (row) in a String [] or Serializable[]
> and see what happens.
>
> Debugging serialization issues is not-so-simple, I'm sorry.
> Could even be due to re-transmission of classes definitions.
>
> Note that if useful, you could even use Pivot BinarySerializer (
>
> http://pivot.apache.org/2.0/docs/api/org/apache/pivot/serialization/BinarySerializer.html
> ) to serialize 1 (attention: 1 and only 1) Serializable Object (or
> maybe put all your objects in a Collection and serialize it), but
> probably this could be useful after you have transformed your domain
> objects.
>
> Tell to us how you solve the problem ...
>
> Good luck,
> Sandro
>
>
> 2011/10/18 pan peter <pan.peter1978@gmail.com>:
> > just made that test, without any pivot code, simple java application
> makes
> > that service call, same time, 30 to 40 seconds.
> >
> > so it's not pivot issue.
> >
> > --
> > View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/pivot-network-performance-tp3421407p3431380.html
> > Sent from the Apache Pivot - Users mailing list archive at Nabble.com.
> >
>

Mime
View raw message