--
You received this message because you are subscribed to the "kryo-users" group.
http://groups.google.com/group/kryo-users
Thank you for your reply. Your assumption is right, I will try that.
I have few more questions (below) -
1) I was also trying to use Kryo to serialize and de-serialize some
JAXB generated types with no joy.
First of all I had to register "javax.xml.bind.JAXBElement" and even
"java.lang.Class.class" to serialize the custom generated types.
But it failed in the server during de-serialize with no default
constructor for javax.xml.bind.JAXBElement error.
I assume using writeClassAndObject/readObjectData would resolve this
for me ?
Is there any performance overhead in using these methods over the
readObject/writeObjectData?
2) I am doing my test using HTTP protocol to serialize the objects and
send to server (using Kryo api).
Is there any advantage in using Kryonet instead?
If I run a Kryonet server instead, will it scale with increased number
of concurrent connections?
I just want to mention kryo-serializers here
(https://github.com/magro/kryo-serializers) which provides several
custom serializers, so it would be a good place for a
JAXBElementSerializer. It does also provide the
KryoReflectionFactorySupport, which is a Kryo specialization that uses
Sun's ReflectionFactory to create new instances for classes without a
default constructor (it's tied to a sun/oracle/openjdk jvm). Perhaps
this is also useful for you.
Cheers,
Martin
--
Martin Grotzke
http://twitter.com/martin_grotzke
Cheers,
Martin
On 06/16/2011 09:52 PM, Nate wrote:
> Hi Martin,
>
> Good point. I have added a link to your project from the Kryo project,
> and also added a paragraph to the documentation under Registration.
>
> -Nate
>
>
> On Thu, Jun 16, 2011 at 12:33 PM, Martin Grotzke
> <martin....@googlemail.com <mailto:martin....@googlemail.com>>