[jboss-svn-commits] JBL Code SVN: r13295 - labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jul 10 05:17:20 EDT 2007


Author: kevin.conner at jboss.com
Date: 2007-07-10 05:17:20 -0400 (Tue, 10 Jul 2007)
New Revision: 13295

Added:
   labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java
Removed:
   labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java
Log:
Fix for broken scoping tests: JBESB-671

Copied: labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java (from rev 13271, labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java)
===================================================================
--- labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java	                        (rev 0)
+++ labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java	2007-07-10 09:17:20 UTC (rev 13295)
@@ -0,0 +1,73 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt 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.soa.esb.server;
+
+import org.jboss.soa.esb.helpers.ConfigTree;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.mx.util.MBeanServerLocator;
+import org.jboss.mx.util.MBeanProxyExt;
+
+import javax.management.MBeanServer;
+
+/**
+ * This is a duplicate class to test classloader scoping.
+ *
+ */
+public class MyAction
+{
+   protected ConfigTree _config;
+
+   public MyAction(ConfigTree config)
+   {
+      _config = config;
+   }
+
+   public Message noOperation(Message message)
+   {
+      return message;
+   }
+
+   public Message process(Message message) throws Exception
+   {
+      logHeader();
+      System.out.println("Body: " + new String(message.getBody().getByteArray()));
+      logFooter();
+      MBeanServer server = MBeanServerLocator.locateJBoss();
+      StatsMBean stats = (StatsMBean) MBeanProxyExt.create(StatsMBean.class, StatsMBean.objectName, server);
+      System.out.println("************ SCOPED 2 ************");
+      stats.setExecutedVersion("scope2");
+      return message;
+   }
+
+   // This makes it easier to read on the console
+   private void logHeader()
+   {
+      System.out.println("\n&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
+   }
+
+   private void logFooter()
+   {
+      System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
+   }
+
+
+}

Deleted: labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java
===================================================================
--- labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java	2007-07-10 08:58:15 UTC (rev 13294)
+++ labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java	2007-07-10 09:17:20 UTC (rev 13295)
@@ -1,73 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2006, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt 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.soa.esb.server;
-
-import org.jboss.soa.esb.helpers.ConfigTree;
-import org.jboss.soa.esb.message.Message;
-import org.jboss.mx.util.MBeanServerLocator;
-import org.jboss.mx.util.MBeanProxyExt;
-
-import javax.management.MBeanServer;
-
-/**
- * This is a duplicate class to test classloader scoping.
- *
- */
-public class MyJMSListenerAction
-{
-   protected ConfigTree _config;
-
-   public MyJMSListenerAction(ConfigTree config)
-   {
-      _config = config;
-   }
-
-   public Message noOperation(Message message)
-   {
-      return message;
-   }
-
-   public Message process(Message message) throws Exception
-   {
-      logHeader();
-      System.out.println("Body: " + new String(message.getBody().getContents()));
-      logFooter();
-      MBeanServer server = MBeanServerLocator.locateJBoss();
-      StatsMBean stats = (StatsMBean) MBeanProxyExt.create(StatsMBean.class, StatsMBean.objectName, server);
-      System.out.println("************ SCOPED 2 ************");
-      stats.setExecutedVersion("scope2");
-      return message;
-   }
-
-   // This makes it easier to read on the console
-   private void logHeader()
-   {
-      System.out.println("\n&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&");
-   }
-
-   private void logFooter()
-   {
-      System.out.println("&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\n");
-   }
-
-
-}




More information about the jboss-svn-commits mailing list