On Tue, Oct 5, 2010 at 3:56 PM, Russell, Brian <bruss...@medplus.com> wrote:
> Thanks very much.  I guess the part that I'm not understanding in this
> is how to get a List<Object> to return from a method where I can then
> split it out based on a quart cron trigger.
>
> Let me ask it this way -- is the quartz implementation in camel
> literally just the timer part of the process?  So that, when it kicks
> off, it pulls from your "from" endpoint to your "to" endpoint?
>

Yes quartz is just the scheduler. You can just use a bean/processor to
get the List<Object>.

from(qartz)
to(beanThatGetTheList)
...


> So I would have something like the following:
>
>        <endpoint id="quartz_scheduler"
> uri="quartz://quartTrigger?cron=0+0/1+*+*+*+?" />
>
>        <route id="route1">
>                <from ref="quartz_scheduler" />
>            <to ref="beanReturningListObject">
>                <split>
>                        <simple>body</simple>
>                        <to ref="map_objects" />
>                        <to ref="jms_queue" />
>                </split>
>        </route>
>
> Is quartz_scheduler just a cron expression or does it actually map to a
> bean?  Does quartzTrigger need to be defined as a bean also?  In my
> quartz-only implementation, I actually create a custom trigger bean and
> a custom job bean.  The job bean in that scenario would execute a
> service layer to get the objects, iterate through them, move them to a
> MapMessage, and drop them on the queue.
>
> With this, I'm trying to have a quartz job return a List<Object and drop
> each object onto the queue.
>
> I'm just not quite following how this stream gets mapped together
> through the spring configuration?
>
> ?
>
>
> -----Original Message-----
> From: Ashwin Karpe [mailto:aka...@fusesource.com]
> Sent: Monday, October 04, 2010 3:14 PM
> To: users@camel.apache.org
> Subject: Re: Quartz Camel Spring Example?
>
>
> Hi,
>
> Check out the following links
>
> https://svn.apache.org/viewvc/camel/trunk/components/camel-quartz/src/te
> st/resources/org/apache/camel/component/quartz/SpringQuartzCronRouteTest
> .xml?view=markup
> https://svn.apache.org/viewvc/camel/trunk/components/camel-quartz/src/te
> st/resources/org/apache/camel/component/quartz/SpringQuartzCronRouteTest
> .xml?view=markup
>
> https://svn.apache.org/viewvc/camel/trunk/components/camel-quartz/src/te
> st/java/org/apache/camel/component/quartz/SpringQuartzCronRouteTest.java
> ?view=markup
> https://svn.apache.org/viewvc/camel/trunk/components/camel-quartz/src/te
> st/java/org/apache/camel/component/quartz/SpringQuartzCronRouteTest.java
> ?view=markup
>
> Cheers,
>
> Ashwin...
>
>
> -----
> ---------------------------------------------------------
> Ashwin Karpe
> Apache Camel Committer & Sr Principal Consultant
> FUSESource (a Progress Software Corporation subsidiary)
> http://fusesource.com http://fusesource.com
>
> Blog: http://opensourceknowledge.blogspot.com
> http://opensourceknowledge.blogspot.com
> ---------------------------------------------------------
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/message-not-getting-delivered-tp307328
> 1p3198239.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
>
>
>
>
>
>
>
> Confidentiality Notice: The information contained in this electronic 
> transmission is confidential and may be legally privileged. It is intended 
> only for the addressee(s) named above. If you are not an intended recipient, 
> be aware that any disclosure, copying, distribution or use of the information 
> contained in this transmission is prohibited and may be unlawful. If you have 
> received this transmission in error, please notify us by telephone (513) 
> 229-5500 or by email (postmas...@medplus.com). After replying, please erase 
> it from your computer system.
>
>
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to