[jboss-svn-commits] JBL Code SVN: r22524 - in labs/jbossesb/workspace/skeagh: runtime/src/main/java/org/jboss/esb/deploy and 3 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Sep 8 12:52:38 EDT 2008
Author: tfennelly
Date: 2008-09-08 12:52:38 -0400 (Mon, 08 Sep 2008)
New Revision: 22524
Added:
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/AbstractDeploymentNotification.java
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentDetailsNotification.java
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentHeartbeatNotification.java
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/package.html
Removed:
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/AbstractDeploymentNotification.java
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentDetailsNotification.java
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentHeartbeatNotification.java
Modified:
labs/jbossesb/workspace/skeagh/routing/jms/src/test/java/org/jboss/esb/jms/JmsInboundRouterTest.java
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/DeploymentRuntime.java
labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentCoordinator.java
labs/jbossesb/workspace/skeagh/runtime/src/test/java/org/jboss/esb/dispatch/LocalDispatcherTest.java
Log:
fixed name of method on the DeploymentRuntime class
Modified: labs/jbossesb/workspace/skeagh/routing/jms/src/test/java/org/jboss/esb/jms/JmsInboundRouterTest.java
===================================================================
--- labs/jbossesb/workspace/skeagh/routing/jms/src/test/java/org/jboss/esb/jms/JmsInboundRouterTest.java 2008-09-08 16:50:11 UTC (rev 22523)
+++ labs/jbossesb/workspace/skeagh/routing/jms/src/test/java/org/jboss/esb/jms/JmsInboundRouterTest.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -55,7 +55,7 @@
public final void initializeDefaults() throws DeploymentException, IOException, JMSException
{
DeploymentRuntime runtime = DigestUtil.digestConfig(getClass().getResourceAsStream("jms-inbound-router_01.xml"));
- InboundRouter inboundRouter = runtime.getConfigurationUnits().get(0).getInboundRouter(serviceName, "noproperties").getRouter();
+ InboundRouter inboundRouter = runtime.getDeploymentUnits().get(0).getInboundRouter(serviceName, "noproperties").getRouter();
assertTrue(inboundRouter instanceof JmsInboundRouter);
runtime.deploy();
Modified: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/DeploymentRuntime.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/DeploymentRuntime.java 2008-09-08 16:50:11 UTC (rev 22523)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/deploy/DeploymentRuntime.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -145,7 +145,7 @@
*
* @return The deployment configuration units.
*/
- public final List<DeploymentUnit> getConfigurationUnits()
+ public final List<DeploymentUnit> getDeploymentUnits()
{
return deploymentUnits;
}
Deleted: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/AbstractDeploymentNotification.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/AbstractDeploymentNotification.java 2008-09-08 16:50:11 UTC (rev 22523)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/AbstractDeploymentNotification.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -1,75 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright XXXX, Red Hat Middleware LLC, 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-2008, JBoss Inc.
- */
-package org.jboss.esb.federate;
-
-import java.io.Serializable;
-
-/**
- * Deployment notification base type.
- *
- * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
- */
-public abstract class AbstractDeploymentNotification implements Serializable
-{
- /**
- * The deployment name.
- */
- private String name;
- /**
- * The deployment ID.
- */
- private String id;
-
- /**
- * Get the deployment name.
- * @return The deployment name.
- */
- public final String getName()
- {
- return name;
- }
-
- /**
- * Set the deployment name.
- * @param name The deployment name.
- */
- public final void setName(final String name)
- {
- this.name = name;
- }
-
- /**
- * Get the deployment ID.
- * @return The deployment ID.
- */
- public final String getId()
- {
- return id;
- }
-
- /**
- * Set the deployment ID.
- * @param id The deployment ID.
- */
- public final void setId(final String id)
- {
- this.id = id;
- }
-}
Modified: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentCoordinator.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentCoordinator.java 2008-09-08 16:50:11 UTC (rev 22523)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentCoordinator.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -19,12 +19,12 @@
*/
package org.jboss.esb.federate;
+import org.jboss.esb.annotations.Initialize;
+import org.jboss.esb.deploy.DeploymentRuntime;
import org.jboss.esb.schedule.AbstractScheduleListener;
import org.jboss.esb.schedule.SchedulingException;
-import org.jboss.esb.deploy.config.DeploymentUnit;
+import org.jboss.esb.util.AssertArgument;
-import java.util.List;
-
/**
* Deployment Coordinator.
* <p/>
@@ -38,17 +38,24 @@
/**
* Deployment Units.
*/
- private List<DeploymentUnit> deploymentUnits;
+ private DeploymentRuntime runtime;
/**
* Public constructor.
- * @param deploymentUnits The DeploymentUnits for the local deployment.
+ * @param runtime The Deployment runtime with which the coordinator is associated.
*/
- public DeploymentCoordinator(final List<DeploymentUnit> deploymentUnits)
+ public DeploymentCoordinator(final DeploymentRuntime runtime)
{
- this.deploymentUnits = deploymentUnits;
+ AssertArgument.isNotNull(runtime, "runtime");
+ this.runtime = runtime;
}
+ @Initialize
+ public void initialize()
+ {
+
+ }
+
/**
* Deployment management schedule handler.
* @throws SchedulingException Exception processing schedule event.
Deleted: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentDetailsNotification.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentDetailsNotification.java 2008-09-08 16:50:11 UTC (rev 22523)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentDetailsNotification.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -1,81 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright XXXX, Red Hat Middleware LLC, 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-2008, JBoss Inc.
- */
-package org.jboss.esb.federate;
-
-import org.jboss.esb.routing.OutboundRouter;
-import org.jboss.esb.service.ServiceName;
-
-import java.util.List;
-
-/**
- * Deployment details notification.
- * <p/>
- * Used to notify other deployments of the list of services and outbound routers
- * deployed in the associated deployment.
- *
- * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
- */
-public class DeploymentDetailsNotification extends AbstractDeploymentNotification
-{
- /**
- * The list of services contained in the deployment.
- */
- private List<ServiceName> services;
- /**
- * The list of outbound routers contained in the deployment.
- */
- private List<OutboundRouter> outboundRouters;
-
- /**
- * Get the deployment service list.
- * @return The deployment service list.
- */
- public final List<ServiceName> getServices()
- {
- return services;
- }
-
- /**
- * Set the deployment service list.
- * @param services The deployment service list.
- */
- public final void setServices(final List<ServiceName> services)
- {
- this.services = services;
- }
-
- /**
- * Get the deployment {@link OutboundRouter} list.
- * @return The deployment {@link OutboundRouter} list.
- */
- public final List<OutboundRouter> getOutboundRouters()
- {
- return outboundRouters;
- }
-
- /**
- * Set the deployment {@link OutboundRouter} list.
- * @param outboundRouters The deployment {@link OutboundRouter} list.
- */
- public final void setOutboundRouters(final List<OutboundRouter> outboundRouters)
- {
- this.outboundRouters = outboundRouters;
- }
-}
Deleted: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentHeartbeatNotification.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentHeartbeatNotification.java 2008-09-08 16:50:11 UTC (rev 22523)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentHeartbeatNotification.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -1,32 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright XXXX, Red Hat Middleware LLC, 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-2008, JBoss Inc.
- */
-package org.jboss.esb.federate;
-
-/**
- * Simple deployment heartbeat notification.
- * <p/>
- * Used to signal to other deployments that a particular deployment is still
- * running.
- *
- * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
- */
-public class DeploymentHeartbeatNotification extends AbstractDeploymentNotification
-{
-}
Copied: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/AbstractDeploymentNotification.java (from rev 22520, labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/AbstractDeploymentNotification.java)
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/AbstractDeploymentNotification.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/AbstractDeploymentNotification.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -0,0 +1,75 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright XXXX, Red Hat Middleware LLC, 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-2008, JBoss Inc.
+ */
+package org.jboss.esb.federate.notify;
+
+import java.io.Serializable;
+
+/**
+ * Deployment notification base type.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public abstract class AbstractDeploymentNotification implements Serializable
+{
+ /**
+ * The deployment name.
+ */
+ private String name;
+ /**
+ * The deployment ID.
+ */
+ private String id;
+
+ /**
+ * Get the deployment name.
+ * @return The deployment name.
+ */
+ public final String getName()
+ {
+ return name;
+ }
+
+ /**
+ * Set the deployment name.
+ * @param name The deployment name.
+ */
+ public final void setName(final String name)
+ {
+ this.name = name;
+ }
+
+ /**
+ * Get the deployment ID.
+ * @return The deployment ID.
+ */
+ public final String getId()
+ {
+ return id;
+ }
+
+ /**
+ * Set the deployment ID.
+ * @param id The deployment ID.
+ */
+ public final void setId(final String id)
+ {
+ this.id = id;
+ }
+}
Property changes on: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/AbstractDeploymentNotification.java
___________________________________________________________________
Name: svn:eol-style
+ native
Copied: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentDetailsNotification.java (from rev 22520, labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentDetailsNotification.java)
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentDetailsNotification.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentDetailsNotification.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -0,0 +1,101 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright XXXX, Red Hat Middleware LLC, 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-2008, JBoss Inc.
+ */
+package org.jboss.esb.federate.notify;
+
+import org.jboss.esb.deploy.DeploymentRuntime;
+import org.jboss.esb.deploy.config.DeploymentUnit;
+import org.jboss.esb.routing.OutboundRouter;
+import org.jboss.esb.service.ServiceName;
+
+import java.util.List;
+
+/**
+ * Deployment details notification.
+ * <p/>
+ * Used to notify other deployments of the list of services and outbound routers
+ * deployed in the associated deployment.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class DeploymentDetailsNotification extends AbstractDeploymentNotification
+{
+ /**
+ * The list of services contained in the deployment.
+ */
+ private List<ServiceName> services;
+ /**
+ * The list of outbound routers contained in the deployment.
+ */
+ private List<OutboundRouter> outboundRouters;
+
+ /**
+ * Get the deployment service list.
+ * @return The deployment service list.
+ */
+ public final List<ServiceName> getServices()
+ {
+ return services;
+ }
+
+ /**
+ * Set the deployment service list.
+ * @param services The deployment service list.
+ */
+ public final void setServices(final List<ServiceName> services)
+ {
+ this.services = services;
+ }
+
+ /**
+ * Get the deployment {@link OutboundRouter} list.
+ * @return The deployment {@link OutboundRouter} list.
+ */
+ public final List<OutboundRouter> getOutboundRouters()
+ {
+ return outboundRouters;
+ }
+
+ /**
+ * Set the deployment {@link OutboundRouter} list.
+ * @param outboundRouters The deployment {@link OutboundRouter} list.
+ */
+ public final void setOutboundRouters(final List<OutboundRouter> outboundRouters)
+ {
+ this.outboundRouters = outboundRouters;
+ }
+
+ /**
+ * DeploymentRuntime to DeploymentDetailsNotification helper method.
+ * @param runtime The DeploymentRuntime instance.
+ * @return The DeploymentDetailsNotification instance.
+ */
+ public final DeploymentDetailsNotification toNotification(final DeploymentRuntime runtime)
+ {
+ DeploymentDetailsNotification notification = new DeploymentDetailsNotification();
+
+ notification.setName(runtime.getDeploymentName());
+ notification.setId(runtime.getDeploymentID());
+
+ List<DeploymentUnit> deploymentUnits = runtime.getDeploymentUnits();
+
+
+ return notification;
+ }
+}
Property changes on: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentDetailsNotification.java
___________________________________________________________________
Name: svn:eol-style
+ native
Copied: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentHeartbeatNotification.java (from rev 22520, labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/DeploymentHeartbeatNotification.java)
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentHeartbeatNotification.java (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentHeartbeatNotification.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright XXXX, Red Hat Middleware LLC, 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-2008, JBoss Inc.
+ */
+package org.jboss.esb.federate.notify;
+
+import org.jboss.esb.deploy.DeploymentRuntime;
+
+/**
+ * Simple deployment heartbeat notification.
+ * <p/>
+ * Used to signal to other deployments that a particular deployment is still
+ * running.
+ *
+ * @author <a href="mailto:tom.fennelly at jboss.com">tom.fennelly at jboss.com</a>
+ */
+public class DeploymentHeartbeatNotification extends AbstractDeploymentNotification
+{
+
+ /**
+ * DeploymentRuntime to DeploymentHeartbeatNotification helper method.
+ * @param runtime The DeploymentRuntime instance.
+ * @return The DeploymentHeartbeatNotification instance.
+ */
+ public final DeploymentHeartbeatNotification toNotification(final DeploymentRuntime runtime)
+ {
+ DeploymentHeartbeatNotification notification = new DeploymentHeartbeatNotification();
+
+ notification.setName(runtime.getDeploymentName());
+ notification.setId(runtime.getDeploymentID());
+
+ return notification;
+ }
+}
Property changes on: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/DeploymentHeartbeatNotification.java
___________________________________________________________________
Name: svn:eol-style
+ native
Copied: labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/package.html (from rev 22518, labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/package.html)
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/package.html (rev 0)
+++ labs/jbossesb/workspace/skeagh/runtime/src/main/java/org/jboss/esb/federate/notify/package.html 2008-09-08 16:52:38 UTC (rev 22524)
@@ -0,0 +1,8 @@
+<html>
+<head></head>
+<body>
+ESB Deployment Federation Notification.
+
+<h2>Package Specification</h2>
+</body>
+</html>
\ No newline at end of file
Modified: labs/jbossesb/workspace/skeagh/runtime/src/test/java/org/jboss/esb/dispatch/LocalDispatcherTest.java
===================================================================
--- labs/jbossesb/workspace/skeagh/runtime/src/test/java/org/jboss/esb/dispatch/LocalDispatcherTest.java 2008-09-08 16:50:11 UTC (rev 22523)
+++ labs/jbossesb/workspace/skeagh/runtime/src/test/java/org/jboss/esb/dispatch/LocalDispatcherTest.java 2008-09-08 16:52:38 UTC (rev 22524)
@@ -44,8 +44,8 @@
runtime.deploy();
try {
- HelloInboundRouter inRouter = (HelloInboundRouter) runtime.getConfigurationUnits().get(0).getInboundRouter(service, "inrouter1").getRouter();
- HelloOutboundRouter outRouter = (HelloOutboundRouter) runtime.getConfigurationUnits().get(0).getOutboundRouter(service, "outrouter1").getRouter();
+ HelloInboundRouter inRouter = (HelloInboundRouter) runtime.getDeploymentUnits().get(0).getInboundRouter(service, "inrouter1").getRouter();
+ HelloOutboundRouter outRouter = (HelloOutboundRouter) runtime.getDeploymentUnits().get(0).getOutboundRouter(service, "outrouter1").getRouter();
assertEquals(null, outRouter.getHelloMessage());
inRouter.sendHello("Hey there");
More information about the jboss-svn-commits
mailing list