[jboss-svn-commits] JBL Code SVN: r8253 - in labs/jbossesb/trunk/product: core/listeners/src core/listeners/src/org/jboss/soa/esb/listeners/config core/listeners/src/org/jboss/soa/esb/listeners/gateway core/listeners/src/org/jboss/soa/esb/listeners/message core/services/src core/services/src/org/jboss/soa/esb/services/registry core/services/src/org/jboss/soa/esb/services/routing install/conf
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Dec 12 09:43:30 EST 2006
Author: kurt.stam at jboss.com
Date: 2006-12-12 09:43:23 -0500 (Tue, 12 Dec 2006)
New Revision: 8253
Removed:
labs/jbossesb/trunk/product/core/services/src/META-INF/
Modified:
labs/jbossesb/trunk/product/core/listeners/src/jboss-service.xml
labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/config/XmlValidator.java
labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/config/XmlValidatorException.java
labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/gateway/GatewayListenerControllerService.java
labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/gateway/GatewayListenerControllerServiceMBean.java
labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/message/EsbListenerControllerService.java
labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/message/EsbListenerControllerServiceMBean.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/RegistryException.java
labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/routing/MessageRouterException.java
labs/jbossesb/trunk/product/install/conf/jbossesb-listener.xml
Log:
Adding license texts, javadoc and comments.
Modified: labs/jbossesb/trunk/product/core/listeners/src/jboss-service.xml
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/jboss-service.xml 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/listeners/src/jboss-service.xml 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<server>
+ <!-- Starts the listener controler -->
<mbean code="org.jboss.soa.esb.listeners.message.EsbListenerControllerService"
name="jboss.org:service=EsbListenerController"
description="ESB Aware Listener">
@@ -8,6 +9,7 @@
<depends>jboss.jca:service=DataSourceBinding,name=juddiDB</depends>
<depends>jboss.jca:service=DataSourceBinding,name=JBossESBDS</depends>
</mbean>
+ <!-- Starts the gateway controller -->
<mbean code="org.jboss.soa.esb.listeners.gateway.GatewayListenerControllerService"
name="jboss.org:service=GatewayListenerController"
description="Gateway Listener">
@@ -15,6 +17,7 @@
<depends>jboss.jca:service=DataSourceBinding,name=juddiDB</depends>
<depends>jboss.jca:service=DataSourceBinding,name=JBossESBDS</depends>
</mbean>
+ <!-- Registers the Juddi RMI Service to JNDI -->
<mbean code="org.jboss.soa.esb.listeners.JuddiRMIService"
name="jboss.org:service=JuddiRMI"
description="Gateway Listener">
Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/config/XmlValidator.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/config/XmlValidator.java 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/config/XmlValidator.java 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,6 +1,26 @@
+/*
+ * 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.io.InputStream;
import java.util.Collection;
import org.w3c.dom.Document;
@@ -30,7 +50,7 @@
* @return boolean, true if it passed validation, false if it failed.
* @throws XmlValidatorException
*/
- public boolean validate(InputStream xmlInputSource, InputSource validationSource) throws XmlValidatorException;
+ public boolean validate(InputSource xmlInputSource, InputSource validationSource) throws XmlValidatorException;
/**
* If the validation fails, more details can be obtained about the reasons why.
*
Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/config/XmlValidatorException.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/config/XmlValidatorException.java 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/config/XmlValidatorException.java 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,19 +1,32 @@
/*
- * Created on Jul 15, 2004
+ * 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;
/**
- * @author gerry
- *
- * <p>Created: Jul 15, 2004</p>
+ * @author Kurt Stam
+ *
*/
public class XmlValidatorException extends Exception {
private static final long serialVersionUID = 1L;
- public final static String STORE = "Failed to store. ";
- public final static String DELETE = "Failed to delete. ";
- public final static String FETCH = "Failed to fetch. ";
public XmlValidatorException(){
super();
Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/gateway/GatewayListenerControllerService.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/gateway/GatewayListenerControllerService.java 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/gateway/GatewayListenerControllerService.java 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,3 +1,24 @@
+/*
+ * 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.gateway;
import java.net.URI;
@@ -4,13 +25,20 @@
import org.apache.log4j.Logger;
import org.jboss.system.ServiceMBeanSupport;
-
+/**
+ * Service to manage the gateways when deployed to the appserver.
+ *
+ * @author Kurt Stam
+ *
+ */
public class GatewayListenerControllerService extends ServiceMBeanSupport implements GatewayListenerControllerServiceMBean
{
private GatewayListenerController gatewayListController;
private Logger logger = Logger.getLogger(this.getClass());
private String gatewayConfigFile="jbossesb-gateway.xml";
-
+ /**
+ * Starts the gateways.
+ */
protected void startService() throws Exception
{
logger.info("starting message aware listener with config file " + gatewayConfigFile);
@@ -22,17 +50,23 @@
gatewayListController = new GatewayListenerController(configFile);
new Thread(gatewayListController).start();
}
-
+ /**
+ * Stops the gateways.
+ */
protected void stopService() throws Exception
{
logger.info("shutting down message aware listener...");
gatewayListController.requestEnd();
}
-
+ /**
+ * Gets the gateway config file. This can be set in the jboss-service.xml.
+ */
public String getGatewayConfigFile() {
return gatewayConfigFile;
}
-
+ /**
+ * Sets the gateway config file.
+ */
public void setGatewayConfigFile(String gatewayConfigFile) {
this.gatewayConfigFile = gatewayConfigFile;
}
Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/gateway/GatewayListenerControllerServiceMBean.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/gateway/GatewayListenerControllerServiceMBean.java 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/gateway/GatewayListenerControllerServiceMBean.java 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,7 +1,32 @@
+/*
+ * 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.gateway;
import org.jboss.system.ServiceMBean;
-
+/**
+ *
+ * @author Kurt Stam
+ *
+ */
public interface GatewayListenerControllerServiceMBean extends ServiceMBean
{
// Configure getters and setters for the configFile attribute
Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/message/EsbListenerControllerService.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/message/EsbListenerControllerService.java 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/message/EsbListenerControllerService.java 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,3 +1,24 @@
+/*
+ * 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.message;
import java.net.URI;
@@ -4,13 +25,20 @@
import org.apache.log4j.Logger;
import org.jboss.system.ServiceMBeanSupport;
-
+/**
+ * Service to manage the Listener when deployed to the appserver.
+ *
+ * @author Kurt Stam
+ *
+ */
public class EsbListenerControllerService extends ServiceMBeanSupport implements EsbListenerControllerServiceMBean
{
private EsbListenerController _esbListController;
private Logger _logger = Logger.getLogger(this.getClass());
private String messageAwareConfigFile="jbossesb-listener.xml";
-
+ /**
+ * Starts the listeners.
+ */
protected void startService() throws Exception
{
_logger.info("starting message aware listener with config file " + messageAwareConfigFile);
@@ -21,17 +49,23 @@
System.setProperty("juddi.propertiesFile", confDir + "juddi.properties");
_esbListController = EsbListenerControllerFactory.getInstance(configFile);
}
-
+ /**
+ * Stops the listeners.
+ */
protected void stopService() throws Exception
{
_logger.info("shutting down message aware listener...");
_esbListController.requestEnd();
}
-
+ /**
+ * Gets the listener config file. The name of the file is set in the jboss-service.xml.
+ */
public String getMessageAwareConfigFile() {
return messageAwareConfigFile;
}
-
+ /**
+ * Sets the listener config file.
+ */
public void setMessageAwareConfigFile(String messageAwareConfigFile) {
this.messageAwareConfigFile = messageAwareConfigFile;
}
Modified: labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/message/EsbListenerControllerServiceMBean.java
===================================================================
--- labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/message/EsbListenerControllerServiceMBean.java 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/listeners/src/org/jboss/soa/esb/listeners/message/EsbListenerControllerServiceMBean.java 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,10 +1,35 @@
+/*
+ * 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.message;
import org.jboss.system.ServiceMBean;
-
+/**
+ *
+ * @author Kurt Stam
+ *
+ */
public interface EsbListenerControllerServiceMBean extends ServiceMBean
{
-// Configure getters and setters for the configFile attribute
+// Configure getters and setters for the configFile attribute
String getMessageAwareConfigFile();
void setMessageAwareConfigFile(String messageAwareConfigFile);
}
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/RegistryException.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/RegistryException.java 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/registry/RegistryException.java 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,19 +1,32 @@
/*
- * Created on Jul 15, 2004
+ * 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.services.registry;
/**
- * @author gerry
+ * @author kstam
*
- * <p>Created: Jul 15, 2004</p>
*/
public class RegistryException extends Exception {
private static final long serialVersionUID = 1L;
- public final static String STORE = "Failed to store. ";
- public final static String DELETE = "Failed to delete. ";
- public final static String FETCH = "Failed to fetch. ";
public RegistryException(){
super();
Modified: labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/routing/MessageRouterException.java
===================================================================
--- labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/routing/MessageRouterException.java 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/core/services/src/org/jboss/soa/esb/services/routing/MessageRouterException.java 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,20 +1,33 @@
/*
- * Created on Jul 15, 2004
+ * 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.services.routing;
/**
- * @author gerry
+ * @author kstam
*
- * <p>Created: Jul 15, 2004</p>
*/
public class MessageRouterException extends Exception {
private static final long serialVersionUID = 1L;
- public final static String STORE = "Failed to store. ";
- public final static String DELETE = "Failed to delete. ";
- public final static String FETCH = "Failed to fetch. ";
-
+
public MessageRouterException(){
super();
}
Modified: labs/jbossesb/trunk/product/install/conf/jbossesb-listener.xml
===================================================================
--- labs/jbossesb/trunk/product/install/conf/jbossesb-listener.xml 2006-12-12 13:54:53 UTC (rev 8252)
+++ labs/jbossesb/trunk/product/install/conf/jbossesb-listener.xml 2006-12-12 14:43:23 UTC (rev 8253)
@@ -1,5 +1,5 @@
<JBossESB-Listeners parameterReloadSecs="30">
-<!-- Define your ESB Gateways in this file -->
+<!-- Define your ESB Listeners in this file -->
</JBossESB-Listeners>
More information about the jboss-svn-commits
mailing list