Updated Branches:
  refs/heads/master d98ff0655 -> 02b31d00d

Polished the test SpringQuartzTwoAppsClusteredFailoverTest to be aligned with 
the same test in camel-quartz.

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/02b31d00
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/02b31d00
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/02b31d00

Branch: refs/heads/master
Commit: 02b31d00dbd37a157c7a91fc0c116e3dfd3575d6
Parents: d98ff06
Author: Babak Vahdat <[email protected]>
Authored: Sun Sep 29 08:22:40 2013 +0200
Committer: Babak Vahdat <[email protected]>
Committed: Sun Sep 29 08:22:40 2013 +0200

----------------------------------------------------------------------
 ...ringQuartzPersistentStoreRestartAppTest.java |  4 +-
 ...pringQuartzTwoAppsClusteredFailoverTest.java | 22 +++---
 .../SpringQuartzClusteredAppDatabase.xml        | 30 ++++++++
 .../quartz2/SpringQuartzClusteredAppOne.xml     | 75 ++++++++++++++++++++
 .../quartz2/SpringQuartzClusteredAppOneTest.xml | 75 --------------------
 .../quartz2/SpringQuartzClusteredAppTwo.xml     | 75 ++++++++++++++++++++
 .../quartz2/SpringQuartzClusteredAppTwoTest.xml | 75 --------------------
 .../quartz2/SpringQuartzEmbeddedDatabase.xml    | 30 --------
 8 files changed, 194 insertions(+), 192 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/02b31d00/components/camel-quartz2/src/test/java/org/apache/camel/component/quartz2/SpringQuartzPersistentStoreRestartAppTest.java
----------------------------------------------------------------------
diff --git 
a/components/camel-quartz2/src/test/java/org/apache/camel/component/quartz2/SpringQuartzPersistentStoreRestartAppTest.java
 
b/components/camel-quartz2/src/test/java/org/apache/camel/component/quartz2/SpringQuartzPersistentStoreRestartAppTest.java
index 18af3a0..bad18cb 100644
--- 
a/components/camel-quartz2/src/test/java/org/apache/camel/component/quartz2/SpringQuartzPersistentStoreRestartAppTest.java
+++ 
b/components/camel-quartz2/src/test/java/org/apache/camel/component/quartz2/SpringQuartzPersistentStoreRestartAppTest.java
@@ -71,9 +71,9 @@ public class SpringQuartzPersistentStoreRestartAppTest 
extends TestSupport {
 
         app2.stop();
 
-        // we're done so let's properly close the application contexts, but 
stop
+        // we're done so let's properly close the application contexts, but 
close
         // the second app before the first one so that the quartz scheduler 
running
-        // inside it can properly be shutdown
+        // inside it can be properly shutdown
         app2.close();
         app.close();
     }

http://git-wip-us.apache.org/repos/asf/camel/blob/02b31d00/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringQuartzTwoAppsClusteredFailoverTest.java
----------------------------------------------------------------------
diff --git 
a/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringQuartzTwoAppsClusteredFailoverTest.java
 
b/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringQuartzTwoAppsClusteredFailoverTest.java
index 55ae1a8..cccc3ff 100644
--- 
a/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringQuartzTwoAppsClusteredFailoverTest.java
+++ 
b/components/camel-quartz2/src/test/java/org/apache/camel/routepolicy/quartz2/SpringQuartzTwoAppsClusteredFailoverTest.java
@@ -25,22 +25,24 @@ import 
org.springframework.context.support.AbstractXmlApplicationContext;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 /**
- * @version 
+ * Tests a Quartz based cluster setup of two Camel Apps being triggered 
through {@link CronScheduledRoutePolicy}.
+ * 
+ * @version
  */
 public class SpringQuartzTwoAppsClusteredFailoverTest extends TestSupport {
 
     @Test
     public void testQuartzPersistentStoreClusteredApp() throws Exception {
         // boot up the database the two apps are going to share inside a 
clustered quartz setup
-        AbstractXmlApplicationContext db = new 
ClassPathXmlApplicationContext("org/apache/camel/routepolicy/quartz2/SpringQuartzEmbeddedDatabase.xml");
+        AbstractXmlApplicationContext db = new 
ClassPathXmlApplicationContext("org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppDatabase.xml");
         db.start();
 
         // now launch the first clustered app
-        AbstractXmlApplicationContext app = new 
ClassPathXmlApplicationContext("org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOneTest.xml");
+        AbstractXmlApplicationContext app = new 
ClassPathXmlApplicationContext("org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOne.xml");
         app.start();
 
         // as well as the second one
-        AbstractXmlApplicationContext app2 = new 
ClassPathXmlApplicationContext("org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwoTest.xml");
+        AbstractXmlApplicationContext app2 = new 
ClassPathXmlApplicationContext("org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwo.xml");
         app2.start();
 
         CamelContext camel = app.getBean("camelContext", CamelContext.class);
@@ -67,12 +69,12 @@ public class SpringQuartzTwoAppsClusteredFailoverTest 
extends TestSupport {
         // wait long enough until the second app takes it over...
         Thread.sleep(20000);
         // inside the logs one can then clearly see how the route of the 
second CamelContext gets started:
-        // 2013-09-24 22:51:34,215 [main           ] WARN  
ersistentStoreClusteredAppTest - Crashed...
-        // 2013-09-24 22:51:34,215 [main           ] WARN  
ersistentStoreClusteredAppTest - Crashed...
-        // 2013-09-24 22:51:34,215 [main           ] WARN  
ersistentStoreClusteredAppTest - Crashed...
-        // 2013-09-24 22:51:49,188 [_ClusterManager] INFO  
LocalDataSourceJobStore        - ClusterManager: detected 1 failed or restarted 
instances.
-        // 2013-09-24 22:51:49,188 [_ClusterManager] INFO  
LocalDataSourceJobStore        - ClusterManager: Scanning for instance 
"app-one"'s failed in-progress jobs.
-        // 2013-09-24 22:51:49,211 [eduler_Worker-1] INFO  SpringCamelContext  
           - Route: myRoute started and consuming from: Endpoint[direct://start]
+        // 2013-09-29 08:15:17,038 [main           ] WARN  
tzTwoAppsClusteredFailoverTest:65   - Crashed...
+        // 2013-09-29 08:15:17,038 [main           ] WARN  
tzTwoAppsClusteredFailoverTest:66   - Crashed...
+        // 2013-09-29 08:15:17,038 [main           ] WARN  
tzTwoAppsClusteredFailoverTest:67   - Crashed...
+        // 2013-09-29 08:15:32,001 [_ClusterManager] INFO  
LocalDataSourceJobStore       :3567 - ClusterManager: detected 1 failed or 
restarted instances.
+        // 2013-09-29 08:15:32,001 [_ClusterManager] INFO  
LocalDataSourceJobStore       :3426 - ClusterManager: Scanning for instance 
"app-one"'s failed in-progress jobs.
+        // 2013-09-29 08:15:32,024 [eduler_Worker-1] INFO  SpringCamelContext  
          :2183 - Route: myRoute started and consuming from: 
Endpoint[direct://start]
 
         CamelContext camel2 = app2.getBean("camelContext2", 
CamelContext.class);
 

http://git-wip-us.apache.org/repos/asf/camel/blob/02b31d00/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppDatabase.xml
----------------------------------------------------------------------
diff --git 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppDatabase.xml
 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppDatabase.xml
new file mode 100644
index 0000000..ebcd7c2
--- /dev/null
+++ 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppDatabase.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xmlns:jdbc="http://www.springframework.org/schema/jdbc";
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://www.springframework.org/schema/jdbc 
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd";>
+
+  <!-- the embedded persistent storage for quartz -->
+  <jdbc:embedded-database id="quartz-db" type="DERBY">
+    <jdbc:script location="classpath:tables_derby.sql"/>
+  </jdbc:embedded-database>
+
+</beans>

http://git-wip-us.apache.org/repos/asf/camel/blob/02b31d00/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOne.xml
----------------------------------------------------------------------
diff --git 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOne.xml
 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOne.xml
new file mode 100644
index 0000000..d48d982
--- /dev/null
+++ 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOne.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xmlns:jdbc="http://www.springframework.org/schema/jdbc";
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://www.springframework.org/schema/jdbc 
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
+       http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd";>
+
+  <bean id="quartzDataSource" class="org.apache.commons.dbcp.BasicDataSource">
+    <property name="driverClassName" 
value="org.apache.derby.jdbc.EmbeddedDriver" />
+    <!-- refer the embedded database we setup inside 
SpringQuartzClusteredAppDatabase.xml -->
+    <property name="url" value="jdbc:derby:memory:quartz-db" />
+    <property name="username" value="sa" />
+    <property name="password" value="" />
+  </bean>
+
+  <bean id="quartz2" 
class="org.apache.camel.component.quartz2.QuartzComponent">
+    <property name="scheduler" ref="scheduler"/>
+  </bean>
+
+  <bean id="scheduler" 
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
+    <property name="dataSource" ref="quartzDataSource"/>
+    <property name="autoStartup" value="false"/>
+    <property name="schedulerContextAsMap">
+      <!-- hook Camel into Quartz -->
+      <map>
+        <entry key="CamelQuartzCamelContext" value-ref="camelContext"/>
+      </map>
+    </property>
+    <property name="quartzProperties">
+      <props>
+        <prop key="org.quartz.scheduler.instanceName">myscheduler</prop>
+        <prop key="org.quartz.scheduler.instanceId">app-one</prop>
+        <prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
+        <prop 
key="org.quartz.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.StdJDBCDelegate</prop>
+        <prop key="org.quartz.jobStore.isClustered">true</prop>
+        <prop key="org.quartz.jobStore.clusterCheckinInterval">5000</prop>
+      </props>
+    </property>
+  </bean>
+
+  <bean id="startPolicy" 
class="org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicy">
+    <property name="routeStartTime" value="0/3 * * * * ?" />
+  </bean>
+
+  <camelContext id="camelContext" 
xmlns="http://camel.apache.org/schema/spring";>
+    <template id="template" />
+    <route id="myRoute" routePolicyRef="startPolicy" autoStartup="false">
+      <from uri="direct:start" />
+      <to uri="log:triggered" />
+      <transform>
+        <simple>${body} PINGS!</simple>
+      </transform>
+      <to uri="mock:result" />
+    </route>
+  </camelContext>
+
+</beans>

http://git-wip-us.apache.org/repos/asf/camel/blob/02b31d00/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOneTest.xml
----------------------------------------------------------------------
diff --git 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOneTest.xml
 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOneTest.xml
deleted file mode 100644
index 1a3c4fd..0000000
--- 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppOneTest.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xmlns:jdbc="http://www.springframework.org/schema/jdbc";
-       xsi:schemaLocation="
-       http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
-       http://www.springframework.org/schema/jdbc 
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
-       http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd";>
-
-  <bean id="quartzDataSource" class="org.apache.commons.dbcp.BasicDataSource">
-    <property name="driverClassName" 
value="org.apache.derby.jdbc.EmbeddedDriver" />
-    <!-- refer the embedded database we setup inside 
SpringQuartzEmbeddedDatabase.xml -->
-    <property name="url" value="jdbc:derby:memory:quartz-db" />
-    <property name="username" value="sa" />
-    <property name="password" value="" />
-  </bean>
-
-  <bean id="quartz2" 
class="org.apache.camel.component.quartz2.QuartzComponent">
-    <property name="scheduler" ref="scheduler"/>
-  </bean>
-
-  <bean id="scheduler" 
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
-    <property name="dataSource" ref="quartzDataSource"/>
-    <property name="autoStartup" value="false"/>
-    <property name="schedulerContextAsMap">
-      <!-- hook Camel into Quartz -->
-      <map>
-        <entry key="CamelQuartzCamelContext" value-ref="camelContext"/>
-      </map>
-    </property>
-    <property name="quartzProperties">
-      <props>
-        <prop key="org.quartz.scheduler.instanceName">myscheduler</prop>
-        <prop key="org.quartz.scheduler.instanceId">app-one</prop>
-        <prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
-        <prop 
key="org.quartz.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.StdJDBCDelegate</prop>
-        <prop key="org.quartz.jobStore.isClustered">true</prop>
-        <prop key="org.quartz.jobStore.clusterCheckinInterval">5000</prop>
-      </props>
-    </property>
-  </bean>
-
-  <bean id="startPolicy" 
class="org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicy">
-    <property name="routeStartTime" value="0/3 * * * * ?" />
-  </bean>
-
-  <camelContext id="camelContext" 
xmlns="http://camel.apache.org/schema/spring";>
-    <template id="template" />
-    <route id="myRoute" routePolicyRef="startPolicy" autoStartup="false">
-      <from uri="direct:start" />
-      <to uri="log:triggered" />
-      <transform>
-        <simple>${body} PINGS!</simple>
-      </transform>
-      <to uri="mock:result" />
-    </route>
-  </camelContext>
-
-</beans>

http://git-wip-us.apache.org/repos/asf/camel/blob/02b31d00/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwo.xml
----------------------------------------------------------------------
diff --git 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwo.xml
 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwo.xml
new file mode 100644
index 0000000..6b8406e
--- /dev/null
+++ 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwo.xml
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans";
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+       xmlns:jdbc="http://www.springframework.org/schema/jdbc";
+       xsi:schemaLocation="
+       http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
+       http://www.springframework.org/schema/jdbc 
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
+       http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd";>
+
+  <bean id="quartzDataSource" class="org.apache.commons.dbcp.BasicDataSource">
+    <property name="driverClassName" 
value="org.apache.derby.jdbc.EmbeddedDriver" />
+    <!-- refer the embedded database we setup inside 
SpringQuartzClusteredAppDatabase.xml -->
+    <property name="url" value="jdbc:derby:memory:quartz-db" />
+    <property name="username" value="sa" />
+    <property name="password" value="" />
+  </bean>
+
+  <bean id="quartz2" 
class="org.apache.camel.component.quartz2.QuartzComponent">
+    <property name="scheduler" ref="scheduler"/>
+  </bean>
+
+  <bean id="scheduler" 
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
+    <property name="dataSource" ref="quartzDataSource"/>
+    <property name="autoStartup" value="false"/>
+    <property name="schedulerContextAsMap">
+      <!-- hook Camel into Quartz -->
+      <map>
+        <entry key="CamelQuartzCamelContext" value-ref="camelContext2"/>
+      </map>
+    </property>
+    <property name="quartzProperties">
+      <props>
+        <prop key="org.quartz.scheduler.instanceName">myscheduler</prop>
+        <prop key="org.quartz.scheduler.instanceId">app-two</prop>
+        <prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
+        <prop 
key="org.quartz.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.StdJDBCDelegate</prop>
+        <prop key="org.quartz.jobStore.isClustered">true</prop>
+        <prop key="org.quartz.jobStore.clusterCheckinInterval">5000</prop>
+      </props>
+    </property>
+  </bean>
+
+  <bean id="startPolicy" 
class="org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicy">
+    <property name="routeStartTime" value="0/3 * * * * ?" />
+  </bean>
+
+  <camelContext id="camelContext2" 
xmlns="http://camel.apache.org/schema/spring";>
+    <template id="template" />
+    <route id="myRoute" routePolicyRef="startPolicy" autoStartup="false">
+      <from uri="direct:start" />
+      <to uri="log:triggered" />
+      <transform>
+        <simple>${body} PONGS!</simple>
+      </transform>
+      <to uri="mock:result" />
+    </route>
+  </camelContext>
+
+</beans>

http://git-wip-us.apache.org/repos/asf/camel/blob/02b31d00/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwoTest.xml
----------------------------------------------------------------------
diff --git 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwoTest.xml
 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwoTest.xml
deleted file mode 100644
index 0daa3d1..0000000
--- 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzClusteredAppTwoTest.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xmlns:jdbc="http://www.springframework.org/schema/jdbc";
-       xsi:schemaLocation="
-       http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
-       http://www.springframework.org/schema/jdbc 
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
-       http://camel.apache.org/schema/spring 
http://camel.apache.org/schema/spring/camel-spring.xsd";>
-
-  <bean id="quartzDataSource" class="org.apache.commons.dbcp.BasicDataSource">
-    <property name="driverClassName" 
value="org.apache.derby.jdbc.EmbeddedDriver" />
-    <!-- refer the embedded database we setup inside 
SpringQuartzEmbeddedDatabase.xml -->
-    <property name="url" value="jdbc:derby:memory:quartz-db" />
-    <property name="username" value="sa" />
-    <property name="password" value="" />
-  </bean>
-
-  <bean id="quartz2" 
class="org.apache.camel.component.quartz2.QuartzComponent">
-    <property name="scheduler" ref="scheduler"/>
-  </bean>
-
-  <bean id="scheduler" 
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
-    <property name="dataSource" ref="quartzDataSource"/>
-    <property name="autoStartup" value="false"/>
-    <property name="schedulerContextAsMap">
-      <!-- hook Camel into Quartz -->
-      <map>
-        <entry key="CamelQuartzCamelContext" value-ref="camelContext2"/>
-      </map>
-    </property>
-    <property name="quartzProperties">
-      <props>
-        <prop key="org.quartz.scheduler.instanceName">myscheduler</prop>
-        <prop key="org.quartz.scheduler.instanceId">app-two</prop>
-        <prop key="org.quartz.scheduler.skipUpdateCheck">true</prop>
-        <prop 
key="org.quartz.jobStore.driverDelegateClass">org.quartz.impl.jdbcjobstore.StdJDBCDelegate</prop>
-        <prop key="org.quartz.jobStore.isClustered">true</prop>
-        <prop key="org.quartz.jobStore.clusterCheckinInterval">5000</prop>
-      </props>
-    </property>
-  </bean>
-
-  <bean id="startPolicy" 
class="org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicy">
-    <property name="routeStartTime" value="0/3 * * * * ?" />
-  </bean>
-
-  <camelContext id="camelContext2" 
xmlns="http://camel.apache.org/schema/spring";>
-    <template id="template" />
-    <route id="myRoute" routePolicyRef="startPolicy" autoStartup="false">
-      <from uri="direct:start" />
-      <to uri="log:triggered" />
-      <transform>
-        <simple>${body} PONGS!</simple>
-      </transform>
-      <to uri="mock:result" />
-    </route>
-  </camelContext>
-
-</beans>

http://git-wip-us.apache.org/repos/asf/camel/blob/02b31d00/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzEmbeddedDatabase.xml
----------------------------------------------------------------------
diff --git 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzEmbeddedDatabase.xml
 
b/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzEmbeddedDatabase.xml
deleted file mode 100644
index ebcd7c2..0000000
--- 
a/components/camel-quartz2/src/test/resources/org/apache/camel/routepolicy/quartz2/SpringQuartzEmbeddedDatabase.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-    http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
--->
-<beans xmlns="http://www.springframework.org/schema/beans";
-       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-       xmlns:jdbc="http://www.springframework.org/schema/jdbc";
-       xsi:schemaLocation="
-       http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans.xsd
-       http://www.springframework.org/schema/jdbc 
http://www.springframework.org/schema/jdbc/spring-jdbc.xsd";>
-
-  <!-- the embedded persistent storage for quartz -->
-  <jdbc:embedded-database id="quartz-db" type="DERBY">
-    <jdbc:script location="classpath:tables_derby.sql"/>
-  </jdbc:embedded-database>
-
-</beans>

Reply via email to