Daryl I'm not entirely sure I follow your last email. My understanding of the problem is that we are trying to merge a detached entity that has a relationship to an entity which is in a different persistence context. I'm quite certain that OpenJPA doesn't allow you to share entities across multiple persistence contexts so having two threads sharing the same entity should be a non issue... unless we were to fix/allow that. -- Thanks, Rick
On Mon, Apr 5, 2010 at 2:15 PM, Daryl Stultz <[email protected]> wrote: > On Mon, Apr 5, 2010 at 2:45 PM, Rick Curtis <[email protected]> wrote: > > > I believe that OpenJPA should be throwing an exception as > > pasted below, rather then the one that you are seeing. > > > > I agree that a better message is needed and there was certainly a problem > with my code. However, I'm wondering if there is still a general race > condition problem? Suppose 2 threads are slamming in EntityA records, all > with a reference to a single EntityB record. Would the possibility of this > exception being triggered be pretty high? > > -- > Daryl Stultz > _____________________________________ > 6 Degrees Software and Consulting, Inc. > http://www.6degrees.com > mailto:[email protected] >
