User: luke_t
Date: 02/04/08 18:24:44
Modified: src/main/org/jboss/resource/connectionmanager
CachedConnectionInterceptor.java
Log:
Fix for bug 541323 - failure to invoke "stop" on entity persistence manager member.
Revision Changes Path
1.2 +9 -5
jbosscx/src/main/org/jboss/resource/connectionmanager/CachedConnectionInterceptor.java
Index: CachedConnectionInterceptor.java
===================================================================
RCS file:
/cvsroot/jboss/jbosscx/src/main/org/jboss/resource/connectionmanager/CachedConnectionInterceptor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- CachedConnectionInterceptor.java 24 Mar 2002 21:44:31 -0000 1.1
+++ CachedConnectionInterceptor.java 9 Apr 2002 01:24:44 -0000 1.2
@@ -10,7 +10,6 @@
package org.jboss.resource.connectionmanager;
-
/**
* CachedConnectionInterceptor.java
*
@@ -18,6 +17,7 @@
* Created: Sat Jan 12 01:22:06 2002
*
* @author <a href="mailto:[EMAIL PROTECTED]">David Jencks</a>
+* @author <a href="mailto:[EMAIL PROTECTED]">Luke Taylor</a>
* @version
*/
import java.lang.reflect.Method;
@@ -110,16 +110,20 @@
if (container != null && pm != null &&
((EntityContainer)container).getPersistenceManager() == this)
{
((EntityContainer)container).setPersistenceManager(pm);
- pm = null;
- } // end of if ()
- }
+ pm.stop();
+ }
+ }
/**
*
*/
public void destroy()
{
- // TODO: implement this org.jboss.system.Service method
+ if (container != null && pm != null &&
((EntityContainer)container).getPersistenceManager() == this)
+ {
+ pm.destroy();
+ pm = null;
+ }
}
/**
Sponsored by http://www.ThinkGeek.com/
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development