Hi Richard, [EMAIL PROTECTED] schrieb: > Author: rfrovarp > Date: Fri Aug 31 07:13:27 2007 > New Revision: 571475 > > URL: http://svn.apache.org/viewvc?rev=571475&view=rev > Log: > Synchronize access to committed.
did you find an indication that the commit() method of a single SessionImpl object is invoked by more than one thread? Actually this should never be the case. The critical part further down the method is synchronized via the global transaction lock, which should prevent any concurrency issues during the committing of sessions. -- Andreas > > Modified: > lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java > > Modified: > lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java > URL: > http://svn.apache.org/viewvc/lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java?rev=571475&r1=571474&r2=571475&view=diff > ============================================================================== > --- lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java > (original) > +++ lenya/trunk/src/java/org/apache/lenya/cms/repository/SessionImpl.java Fri > Aug 31 07:13:27 2007 > @@ -130,7 +130,7 @@ > * @throws ConcurrentModificationException if a transactionable has been > modified by another > * session. > */ > - public void commit() throws RepositoryException, > ConcurrentModificationException { > + public synchronized void commit() throws RepositoryException, > ConcurrentModificationException { > > savePersistables(); -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
