openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <d...@iq80.com>
Subject Re: Can I reuse instances?
Date Sun, 08 Apr 2007 20:02:59 GMT
On Apr 8, 2007, at 10:20 AM, Craig L Russell wrote:

> Hi Dain,
>
> On Apr 8, 2007, at 12:17 AM, Dain Sundstrom wrote:
>
>> Is it possible to reuse instances from transaction to transaction?
>>
>> I would like to be able to create a bean in one transaction,  
>> detach it and reattach the same instance in a new transaction.  My  
>> goal here is specifically to reuse instances across transactions  
>> because they have a very expensive creation cost
>
> Do you have some reason to believe this? Entities are cheap.  
> They're not like CMP beans that are so expensive they need to be  
> pooled.

You keep forgetting I'm using JPA to implement CMP :)

-dain



Mime
View raw message