[jboss-svn-commits] JBL Code SVN: r15428 - in labs/jbossesb/trunk/product: rosetta/src/org/jboss/soa/esb/listeners/config and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Fri Sep 28 07:40:13 EDT 2007
Author: kevin.conner at jboss.com
Date: 2007-09-28 07:40:13 -0400 (Fri, 28 Sep 2007)
New Revision: 15428
Removed:
labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerService.java
labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerServiceMBean.java
labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerServiceUnitTest.java
Modified:
labs/jbossesb/trunk/product/docs/ReleaseNotes.odt
Log:
Removed ConfigurationControllerService: JBESB-1098
Modified: labs/jbossesb/trunk/product/docs/ReleaseNotes.odt
===================================================================
(Binary files differ)
Deleted: labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerService.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerService.java 2007-09-28 10:49:38 UTC (rev 15427)
+++ labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerService.java 2007-09-28 11:40:13 UTC (rev 15428)
@@ -1,75 +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.listeners.config;
-
-import java.net.URI;
-
-import org.apache.log4j.Logger;
-import org.jboss.system.ServiceMBeanSupport;
-/**
- * Service to manage the configurationController when deployed to the appserver.
- *
- * @author Kurt Stam
- *
- */
-public class ConfigurationControllerService extends ServiceMBeanSupport implements ConfigurationControllerServiceMBean
-{
- private ConfigurationController configurationController;
- private Logger logger = Logger.getLogger(this.getClass());
- private String configurationFile="jbossesb.xml";
- /**
- * Starts the gateways.
- */
- protected void startService() throws Exception
- {
- logger.info("starting message configuration controller with config file " + configurationFile);
- String confDir = System.getProperty("jboss.server.config.url");
- URI uri = new URI(confDir);
- confDir = uri.getPath();
- String configFile = confDir + configurationFile;
- configurationController = new ConfigurationController(configFile,null);
-// TODO tidy up
- new Thread(configurationController).start();
- }
- /**
- * Stops the gateways.
- */
- protected void stopService() throws Exception
- {
- logger.info("shutting down message aware listener...");
- configurationController.requestEnd();
- configurationController.waitUntilEnded() ;
- }
- /**
- * Gets the config file. The name of the file can be set in the jboss-service.xml.
- */
- public String getConfigurationFile() {
- return configurationFile;
- }
- /**
- * Sets the config file.
- */
- public void setConfigurationFile(String configurationFile) {
- this.configurationFile = configurationFile;
- }
-
-}
Deleted: labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerServiceMBean.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerServiceMBean.java 2007-09-28 10:49:38 UTC (rev 15427)
+++ labs/jbossesb/trunk/product/rosetta/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerServiceMBean.java 2007-09-28 11:40:13 UTC (rev 15428)
@@ -1,35 +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.listeners.config;
-
-import org.jboss.system.ServiceMBean;
-/**
- *
- * @author Kurt Stam
- *
- */
-public interface ConfigurationControllerServiceMBean extends ServiceMBean
-{
- // Configure getters and setters for the configFile attribute
- String getConfigurationFile();
- void setConfigurationFile(String ConfigurationFile);
-}
Deleted: labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerServiceUnitTest.java
===================================================================
--- labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerServiceUnitTest.java 2007-09-28 10:49:38 UTC (rev 15427)
+++ labs/jbossesb/trunk/product/rosetta/tests/src/org/jboss/soa/esb/listeners/config/ConfigurationControllerServiceUnitTest.java 2007-09-28 11:40:13 UTC (rev 15428)
@@ -1,60 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2006, JBoss Inc., and others contributors as indicated
- * by the @authors tag. All rights reserved.
- * See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- * This copyrighted material is made available to anyone wishing to use,
- * modify, copy, or redistribute it subject to the terms and conditions
- * of the GNU Lesser General Public License, v. 2.1.
- * This program is distributed in the hope that it will be useful, but WITHOUT A
- * 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,
- * v.2.1 along with this distribution; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301, USA.
- *
- * (C) 2005-2006,
- * @author JBoss Inc.
- */
-
-package org.jboss.soa.esb.listeners.config;
-
-import junit.framework.TestCase;
-
-import org.apache.log4j.Logger;
-
-public class ConfigurationControllerServiceUnitTest extends TestCase
-{
- private Logger log = Logger
- .getLogger( ConfigurationControllerServiceUnitTest.class );
- public void testService ()
- {
- ConfigurationControllerService service = new ConfigurationControllerService();
- String conf = service.getConfigurationFile();
-
- service.setConfigurationFile(conf);
-
- System.setProperty("jboss.server.config.url", "http://foo.bar");
-
- try
- {
- service.startService();
- }
- catch (Exception ex)
- {
- log.error(ex);
- fail();
- }
-
- try
- {
- service.stopService();
- }
- catch (Exception ex)
- {
- fail();
- }
- }
-}
More information about the jboss-svn-commits
mailing list