On Wed, Jul 1, 2009 at 3:18 PM, Daryl Stultz <[email protected]> wrote:

>
>
> I don't know yet if the above test represents the problem my application is
> having


Yes! That's it! In a "web transaction" I retrieved an entity, set my
properties and ended the web transaction which closed the em. Then in the
next web transaction I hit the save button which gets an new em and does the
merge. Which doesn't work. I threw in a em.close() before setting my
properties and it works now. I just don't like doing that - my em might need
to lazy load some stuff later. Is there a way to detach a single entity
instance without closing the em?

Thanks Mike! You were a great help!

-- 
Daryl Stultz
_____________________________________
6 Degrees Software and Consulting, Inc.
http://www.6degrees.com
mailto:[email protected]

Reply via email to