openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@iq80.com>
Subject Re: Flush all caches?
Date Fri, 08 Dec 2006 21:12:15 GMT
On Dec 8, 2006, at 11:29 AM, Abe White wrote:

>> Other than the cost of not having a cache (which is what I want),  
>> it is expensive to be creating a new EntityManager for each  
>> transaction?
>
> No.

In general, is it a good strategy to use a new EntityManager for each  
transaction?

I think it is great for testing, but I am concerned about having to  
write code two different ways, one for single node deployment and  
another way for a clustered deployment.

-dain

Mime
View raw message