openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Dick <michael.d.d...@gmail.com>
Subject Re: shouldn't writeExternal & Co be 'synchronized'?
Date Mon, 21 Feb 2011 14:38:50 GMT
I think it depends on the object that is being externalized / serialized.
For entities it should be rare that two threads use the same entity at the
same time (sounds like the EM is being shared), and you're probably already
in trouble.

-mike

On Sun, Feb 20, 2011 at 4:33 PM, Mark Struberg <struberg@yahoo.de> wrote:

> Hi folks!
>
> Just recognized that all our generated (via PCEnhancer)
> serialisation/externalisation methods are _not_ synchronized. But usually
> they should be, isn't?
>
> LieGrue,
> strub
>
>
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message