You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Krzysztof <ya...@gmail.com> on 2011/03/17 11:49:01 UTC

@Lob and custom serialization

Hello,
I have been wondering if it would be possible to use Jboss serialization
instead of the native one for @Lob fields? This could could bump speed
several times in some crucial cases for us.

Is there any property that could be set for that? 

Otherwise custom strategy would be needed, which is harder to integrate with
SynchronizeMappings, correct?

Best regards,
Krzysztof

--
View this message in context: http://openjpa.208410.n2.nabble.com/Lob-and-custom-serialization-tp6180405p6180405.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: @Lob and custom serialization

Posted by Krzysztof <ya...@gmail.com>.
Hey Milosz,
Thanks for the good hint (as usual).
Fair enough: I'll dig into DBDictionary, this should be the easiest way.
Cheers,
Krzysztof


--
View this message in context: http://openjpa.208410.n2.nabble.com/Lob-and-custom-serialization-tp6180405p6180782.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: @Lob and custom serialization

Posted by MiƂosz Tylenda <mt...@o2.pl>.
Hi Krzysztof,

I don't think there is a pluggable mechanism just for LOB serialization. I would suggest (as usual ;) that you extend the DBDictionary and experiment with methods like:

- setBlobObject,
- getBlobObject,
- serialize.

Otherwise, try @Externalizer or @Strategy approches.

Regards,
Milosz

> Hello,
> I have been wondering if it would be possible to use Jboss serialization
> instead of the native one for @Lob fields? This could could bump speed
> several times in some crucial cases for us.
> 
> Is there any property that could be set for that? 
> 
> Otherwise custom strategy would be needed, which is harder to integrate with
> SynchronizeMappings, correct?
> 
> Best regards,
> Krzysztof
> 
> --
> View this message in context: http://openjpa.208410.n2.nabble.com/Lob-and-custom-serialization-tp6180405p6180405.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>