remm 02/05/29 13:10:58 Modified: catalina/src/share/org/apache/catalina/mbeans ContextResourceMBean.java Log: - The ResourceParams must be explicitely removed, as just mutating them will not trigger the appropriate events which would cause an update to the JNDI context. Revision Changes Path 1.5 +6 -5 jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ContextResourceMBean.java Index: ContextResourceMBean.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ContextResourceMBean.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- ContextResourceMBean.java 8 May 2002 04:05:33 -0000 1.4 +++ ContextResourceMBean.java 29 May 2002 20:10:57 -0000 1.5 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ContextResourceMBean.java,v 1.4 2002/05/08 04:05:33 amyroh Exp $ - * $Revision: 1.4 $ - * $Date: 2002/05/08 04:05:33 $ + * $Header: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/mbeans/ContextResourceMBean.java,v 1.5 2002/05/29 20:10:57 remm Exp $ + * $Revision: 1.5 $ + * $Date: 2002/05/29 20:10:57 $ * * ==================================================================== * @@ -86,7 +86,7 @@ * <code>org.apache.catalina.deploy.ContextResource</code> component.</p> * * @author Amy Roh - * @version $Revision: 1.4 $ $Date: 2002/05/08 04:05:33 $ + * @version $Revision: 1.5 $ $Date: 2002/05/29 20:10:57 $ */ public class ContextResourceMBean extends BaseModelMBean { @@ -237,13 +237,14 @@ if (rp != null) { String valueStr = ""+value; rp.addParameter(name, valueStr); + cr.getNamingResource().removeResourceParams(cr.getName()); } else { rp = new ResourceParams(); rp.setName(cr.getName()); String valueStr = ""+value; rp.addParameter(name, valueStr); - cr.getNamingResource().addResourceParams(rp); } + cr.getNamingResource().addResourceParams(rp); } }
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>