Author: swd847
Date: 2010-08-31 22:55:52 -0400 (Tue, 31 Aug 2010)
New Revision: 13683
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java
Log:
change to how the em is closed
Modified:
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java
===================================================================
---
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java 2010-09-01
02:50:15 UTC (rev 13682)
+++
modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java 2010-09-01
02:55:52 UTC (rev 13683)
@@ -147,7 +147,10 @@
}
else
{
- delegate.close();
+ if(delegate.isOpen())
+ {
+ delegate.close();
+ }
}
} catch (SystemException e)
{
Show replies by date