Re: Persist issue in multithreaded environment

2009-08-06 Thread Claudio Di Vita
Kevin Sutter wrote: > > > Claudio Di Vita wrote: >> >> I turned on all TRACE messages, but I cannot see any exception. The SQL >> is >> generated for all records, but I cannot see them as rows in tables. >> > > Interesting. We don't gene

Re: Persist issue in multithreaded environment

2009-08-05 Thread Claudio Di Vita
Kevin Sutter wrote: > > Hi Claudio, > You mention in an earlier post that when you turn on SQL Trace that you > see > all of the Inserts getting created. So, does that mean that if you turn > Trace on that it seems to affect the processing and everything works as > expected? Or, do you see SQL

Re: Persist issue in multithreaded environment

2009-08-04 Thread Claudio Di Vita
Craig L Russell wrote: > > The usual symptom for a multithreading problem is an exception thrown > inside an implementation method that can't be explained by application > code. > > What are your symptoms? > I persist a set of entities in n different threads at the same time. Each thread u

Re: Persist issue in multithreaded environment

2009-08-03 Thread Claudio Di Vita
Jean-Baptiste BRIAUD -- Novlog wrote: > > The answer to your question is not in ThreadLocal class but inside the > createEntityManager() method. > So you think that OpenJPA implementation of EntityManagerFactory is not thread-safe ?? I don't catch any exception related to transactions, moreov

Re: Persist issue in multithreaded environment

2009-08-03 Thread Claudio Di Vita
Jean-Baptiste BRIAUD -- Novlog wrote: > > Did you compared using == what you think is different instance of > EntityManager ? > Reading your message tend to prove that EntityManager is shared and > when you think you got a new one it is not a new one. > Why I have to check an instance ret

Persist issue in multithreaded environment

2009-08-03 Thread Claudio Di Vita
Hi to all, I'm having some troubles using OpenJPA in a multithreaded environment. Sometimes (because it happens randomly) some entities aren't persisted, but OpenJPA doesn't throw any exception. Please note that I persist a set of entities (instances of the same class) that don't share any kind