You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by vkarkhanis <vk...@gmail.com> on 2013/06/19 12:29:20 UTC

Autosys poller

Helloo,
I  have a use case to create a autosys poller. (autosys is system which is
used to schedule jobs )
I get a list into a cache everyday post 5 PM. The exact time of the list
availability is indicated by the autosys job going success
On success a processor is executed
I want to configure this similar to the below 

from("quartz://invokeDateCard/DateCardTimer?cron=0+0+17+?+*+MON-FRI&trigger.timeZone=US/Eastern")
.to("autosys://autosysrequest?host=somehost&jobName=somejob&pollinterval=1000").to(doTaskProcessor)

What type of poller should I be implementing for this case ?

Also are there examples of similar implementations ?

Thank you



--
View this message in context: http://camel.465427.n5.nabble.com/Autosys-poller-tp5734358.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Autosys poller

Posted by vkarkhanis <vk...@gmail.com>.
Hello,
Apologizes for late reply.

We got over our problem in following way:

1. We created a cutom autosys component with PollingConsumerSupport
implementation for the consumer.
2. We implemented the recieve method as our requirement was to block until
the autosys job is completed.
3. The custom component's producer implementation calls the consumer's
recieve method. This works for us as the component is meant to be a producer
endpoint only.
4. A quartz scheduler invokes this component, which begins polling. As soon
as the job is completed, the control moves to next processor.

Thank you,
Regards

vkarkhanis



--
View this message in context: http://camel.465427.n5.nabble.com/Autosys-poller-tp5734358p5734730.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Autosys poller

Posted by vkarkhanis <vk...@gmail.com>.
Hello Christian,
Thanks for the reply.

The problem is i was confused if we should implement our custom endpoint
("autosys" ) as ScheduledPollConsumer or a PollingConsumer ?
I think it should be a Polling consumer which blocks. Howevere since its in
the .to , that would make it a producer, thus cannot implement a
PollingCOnsumer ?


Comments ?
Vaibhav



--
View this message in context: http://camel.465427.n5.nabble.com/Autosys-poller-tp5734358p5734414.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Autosys poller

Posted by Christian Müller <ch...@gmail.com>.
What's the problem with the route you show? It looks good to me...

Best,

Christian Müller
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Wed, Jun 19, 2013 at 12:29 PM, vkarkhanis <vk...@gmail.com> wrote:

> Helloo,
> I  have a use case to create a autosys poller. (autosys is system which is
> used to schedule jobs )
> I get a list into a cache everyday post 5 PM. The exact time of the list
> availability is indicated by the autosys job going success
> On success a processor is executed
> I want to configure this similar to the below
>
>
> from("quartz://invokeDateCard/DateCardTimer?cron=0+0+17+?+*+MON-FRI&trigger.timeZone=US/Eastern")
>
> .to("autosys://autosysrequest?host=somehost&jobName=somejob&pollinterval=1000").to(doTaskProcessor)
>
> What type of poller should I be implementing for this case ?
>
> Also are there examples of similar implementations ?
>
> Thank you
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Autosys-poller-tp5734358.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>