[jboss-svn-commits] JBL Code SVN: r13441 - labs/jbossesb/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Jul 13 07:15:15 EDT 2007
Author: beve
Date: 2007-07-13 07:15:15 -0400 (Fri, 13 Jul 2007)
New Revision: 13441
Added:
labs/jbossesb/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java
Removed:
labs/jbossesb/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java
Log:
Missed from latest merge from mail
Copied: labs/jbossesb/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java (from rev 13393, labs/jbossesb/trunk/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java)
===================================================================
--- labs/jbossesb/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyAction.java 2007-07-13 11:15:15 UTC (rev 13441)
@@ -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/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java 2007-07-13 09:03:20 UTC (rev 13440)
+++ labs/jbossesb/workspace/dbevenius/wslistener/qa/junit/versioned-scoped-src/org/jboss/soa/esb/server/MyJMSListenerAction.java 2007-07-13 11:15:15 UTC (rev 13441)
@@ -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