| Commit in servicemix/base/src/main/release/examples/quartz-binding on MAIN | |||
| servicemix.xml | +37 | added 1.1 | |
| README.txt | +16 | added 1.1 | |
| +53 | |||
Adding Quartz example.
servicemix/base/src/main/release/examples/quartz-binding
servicemix.xml added at 1.1
diff -N servicemix.xml --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ servicemix.xml 1 Aug 2005 18:50:25 -0000 1.1 @@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?> +<beans xmlns:my="http://servicemix.org/demo/"> + <!-- the JBI container --> + <container id="jbi"> + <property name="createMBeanServer" value="true"/> + <property name="dumpStats" value="true"/> + <property name="statsInterval" value="10"/> + + <components> + + <!-- lets kick off a timer every 5 seconds --> + <component id="timer" service="my:timer" class="org.servicemix.components.quartz.QuartzComponent" destinationService="my:trace"> + <property name="triggers"> + <map> + <entry> + <key> + <bean class="org.quartz.SimpleTrigger"> + <property name="repeatInterval" value="5000"/> + <property name="repeatCount" value="-1"/> + </bean> + </key> + <bean class="org.quartz.JobDetail"> + <property name="name" value="My Example Job"/> + <property name="group" value="ServiceMix"/> + </bean> + </entry> + </map> + </property> + </component> + + <!-- Route the event to a trace component that just outputs the event to the console --> + <component id="trace" service="my:trace" class="org.servicemix.components.util.TraceComponent"/> + + </components> + </container> + +</beans>
servicemix/base/src/main/release/examples/quartz-binding
README.txt added at 1.1
diff -N README.txt --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ README.txt 1 Aug 2005 18:50:25 -0000 1.1 @@ -0,0 +1,16 @@
+Welcome to the ServiceMix Quartz Binding Example +================================================ + +This example shows how to use the Quartz scheduler to setup +periodic events into the ServiceMix container. + +To start the servicemix server using the sample configuration, just run: + +../../bin/servicemix servicemix.xml + +This will send a periodic event every 5 seconds into the container via +the Quartz scheduler and then the event is picked up by a trace JBI component +which just outputs the event to the console. + +For more information see: +http://servicemix.org/Quartz
\ No newline at end of file
