openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: Can I reuse instances?
Date Sun, 08 Apr 2007 20:15:41 GMT
Hi Dain,

On Apr 8, 2007, at 1:02 PM, Dain Sundstrom wrote:

> 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 :)

No, this is the same approach that Sun app server 7, 8, and 9 use.  
I'm very aware of the issues. ;-)

Craig

>
> -dain
>
>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Mime
View raw message