Re: Can I reuse instances?

2007-04-10 Thread Dain Sundstrom
On Apr 9, 2007, at 5:44 PM, Craig L Russell wrote: Hi Dain, On Apr 9, 2007, at 11:10 AM, Dain Sundstrom wrote: On Apr 8, 2007, at 1:56 PM, Craig L Russell wrote: Hi Dain, I haven't looked in detail at the life cycle of CMP beans in a couple of years, but in general you can't simply keep

Re: Can I reuse instances?

2007-04-10 Thread Dain Sundstrom
On Apr 9, 2007, at 12:41 PM, Patrick Linskey wrote: you need an instance. In CMP the assumption is that entity instances are expensive to create, so less safe route and you pool them. Reusing instances is really a CMP problem, but I don't think it can be implemented without the help of the JPA

Re: Can I reuse instances?

2007-04-10 Thread Craig L Russell
Hi Dain, On Apr 10, 2007, at 12:58 PM, Dain Sundstrom wrote: On Apr 9, 2007, at 5:44 PM, Craig L Russell wrote: Hi Dain, On Apr 9, 2007, at 11:10 AM, Dain Sundstrom wrote: On Apr 8, 2007, at 1:56 PM, Craig L Russell wrote: Hi Dain, I haven't looked in detail at the life cycle of CMP

Re: Can I reuse instances?

2007-04-10 Thread Dain Sundstrom
On Apr 10, 2007, at 1:24 PM, Craig L Russell wrote: Hi Dain, On Apr 10, 2007, at 12:58 PM, Dain Sundstrom wrote: On Apr 9, 2007, at 5:44 PM, Craig L Russell wrote: Hi Dain, On Apr 9, 2007, at 11:10 AM, Dain Sundstrom wrote: On Apr 8, 2007, at 1:56 PM, Craig L Russell wrote: Hi Dain,

Can I reuse instances?

2007-04-08 Thread Dain Sundstrom
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

Re: Can I reuse instances?

2007-04-08 Thread Craig L Russell
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

Re: Can I reuse instances?

2007-04-08 Thread Dain Sundstrom
recipient, and have received this message in error, please immediately return this by email and then delete it. -Original Message- From: Dain Sundstrom [mailto:[EMAIL PROTECTED] Sent: Sunday, April 08, 2007 12:18 AM To: open-jpa-dev@incubator.apache.org Subject: Can I reuse instances

Re: Can I reuse instances?

2007-04-08 Thread Craig L Russell
@incubator.apache.org Subject: Can I reuse instances? 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