[jboss-cvs] JBossAS SVN: r65553 - branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Sep 22 01:26:02 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-09-22 01:26:02 -0400 (Sat, 22 Sep 2007)
New Revision: 65553

Added:
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart/RestartNamingBean.java
   branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart/RestartNamingBeanMBean.java
Log:
[JBAS-4615] Flush cached Naming stub and retry on NoSuchObjectException
[JBAS-4622] Ensure JBAS-4615 fix works when no java.naming.provider.url is specified

Added: branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart/RestartNamingBean.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart/RestartNamingBean.java	                        (rev 0)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart/RestartNamingBean.java	2007-09-22 05:26:02 UTC (rev 65553)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.test.naming.restart;
+
+import org.jnp.server.NamingBeanImpl;
+
+/**
+ * Make NamingBeanImpl a StandardMBean that exposes a couple
+ * additional properties as well as the Service lifecycle.
+ * 
+ * @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
+ * @version $Revision: 1.1 $
+ */
+public class RestartNamingBean extends NamingBeanImpl implements RestartNamingBeanMBean
+{
+
+   public void create() throws Exception
+   {
+      // no-op      
+   }
+
+   public void destroy()
+   {
+      // no-op     
+   }
+   
+}

Added: branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart/RestartNamingBeanMBean.java
===================================================================
--- branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart/RestartNamingBeanMBean.java	                        (rev 0)
+++ branches/Branch_4_2/testsuite/src/main/org/jboss/test/naming/restart/RestartNamingBeanMBean.java	2007-09-22 05:26:02 UTC (rev 65553)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.jboss.test.naming.restart;
+
+import org.jboss.system.Service;
+import org.jnp.server.NamingBean;
+
+/**
+ * A RestartNamingBeanMBean.
+ * 
+ * @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
+ * @version $Revision: 1.1 $
+ */
+public interface RestartNamingBeanMBean extends NamingBean, Service
+{
+   boolean getUseGlobalService();
+   void setUseGlobalService(boolean useGlobal);
+
+   boolean getInstallGlobalService();
+   void setInstallGlobalService(boolean installGlobal);
+}




More information about the jboss-cvs-commits mailing list