On 8/23/06, allfonsiva <[EMAIL PROTECTED]> wrote:
Thanks for your information now i'm trying to give startTime to the quartz trigger. so i included starttime property in servicemix XML. But its not working by throwing exceptions.
What are your exceptions? James
Guide me in this regard... my XMl is <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:sm="http://servicemix.apache.org/config/1.0" xmlns:my="http://servicemix.apache.org/demo/"> <!-- the JBI container --> <sm:container id="jbi" useMBeanServer="true" createMBeanServer="true" dumpStats="true" statsInterval="10"> <sm:activationSpecs> <!-- Route the event to a trace component that just outputs the event to the console --> <sm:activationSpec componentName="trace" service="my:trace"> <sm:component> <bean class="org.apache.servicemix.components.util.TraceComponent" /> </sm:component> </sm:activationSpec> <!-- lets kick off a timer every 5 seconds --> <sm:activationSpec componentName="timer" service="my:timer" destinationService="my:trace"> <sm:component> <bean class="org.apache.servicemix.components.quartz.QuartzComponent"> <property name="triggers"> <map> <entry> <key> <bean class="org.quartz.SimpleTrigger"> <property name="repeatInterval" value="5000" /> <property name="repeatCount" value="1" /> <property name="startTime" value="Wed Aug 23 14:24:00"/> </bean> </key> <bean class="org.quartz.JobDetail"> <property name="name" value="My Example Job" /> <property name="group" value="ServiceMix" /> </bean> </entry> </map> </property> </bean> </sm:component> </sm:activationSpec> </sm:activationSpecs> </sm:container> </beans> gnodet wrote: > > Currently, there is no way to create new triggers programmatically. > But if you want to do that "manually" at runtime, you could deploy a new > SA/SU containing a new quartz component. > > In the future, I think a std JBI component will be implemented for Quartz, > which should support programmatic creation of triggers (via an > administration JBI endpoint + JMX maybe). > > On 8/23/06, allfonsiva <[EMAIL PROTECTED]> wrote: >> >> >> Hi all, >> >> i am now working on quartz coponent of servicemix. in the quartz example >> they are triggering the event to happen in a continuous regular interval >> manner. suppose if i have to schedule a new task to the quartz when the >> server is running means. how can i do that? will it be possible for the >> users to give input triggers to the server at runtime. >> >> Please help me out in this regard >> >> with regards >> Siva >> -- >> View this message in context: >> http://www.nabble.com/How-I-i-Schedule-Servicemix-Quartz-at-Runtime-tf2150675.html#a5938971 >> Sent from the ServiceMix - User forum at Nabble.com. >> >> > > > -- > Cheers, > Guillaume Nodet > > -- View this message in context: http://www.nabble.com/How-I--Schedule-Servicemix-Quartz-at-Runtime-tf2150675.html#a5941214 Sent from the ServiceMix - User forum at Nabble.com.
-- James ------- http://radio.weblogs.com/0112098/
