You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by fachhoch <fa...@gmail.com> on 2011/06/02 19:03:41 UTC
custom condition check frequently
I want to check a table data in my database and if it meets some condtion
then start some processing , how to do this in camel , currently I have a
quartz job running every 5 minutes to check this table and if the data
meets my condition I do some processing , I want to do this in camel please
suggest me how .
--
View this message in context: http://camel.465427.n5.nabble.com/custom-condition-check-frequently-tp4448674p4448674.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: custom condition check frequently
Posted by Alan Camillo <al...@gmail.com>.
I agree with Hadrian!
You can use the same logic with camel-quartz to start your process. In
the same way you implement today.
After that you can use one of many implementations to connect in your
data source. I really like camel-mybatis but you can use one of those:
camel-jdbc
camel-sql
camel-jpa
camel-ibatis
Make some code to validate your condition or implement that with any
language component, like "Simple".
Good luck!
Alan
On Thursday, June 2, 2011, Hadrian Zbarcea <hz...@gmail.com> wrote:
> Camel has a quartz component [1] that you can use in a very similar way (if I understand correctly what you meant).
>
> You obviously need a trigger to start processing, camel-quartz can provide that. Are there any other possible triggers for your data quality validation task?
>
> I hope this helps,
> Hadrian
>
> [1] http://camel.apache.org/quartz.html
>
>
> On Jun 2, 2011, at 1:22 PM, fachhoch wrote:
>
>> some of my tables are not mapped as entities and this table I have to query
>> is not mapped I don't want to map it, I want camel to call my predicate if
>> the predicate returns true call some processor , and check the predicate
>> every 5 minutes ,
>>
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/custom-condition-check-frequently-tp4448674p4448728.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
Re: custom condition check frequently
Posted by Hadrian Zbarcea <hz...@gmail.com>.
Camel has a quartz component [1] that you can use in a very similar way (if I understand correctly what you meant).
You obviously need a trigger to start processing, camel-quartz can provide that. Are there any other possible triggers for your data quality validation task?
I hope this helps,
Hadrian
[1] http://camel.apache.org/quartz.html
On Jun 2, 2011, at 1:22 PM, fachhoch wrote:
> some of my tables are not mapped as entities and this table I have to query
> is not mapped I don't want to map it, I want camel to call my predicate if
> the predicate returns true call some processor , and check the predicate
> every 5 minutes ,
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/custom-condition-check-frequently-tp4448674p4448728.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: custom condition check frequently
Posted by fachhoch <fa...@gmail.com>.
some of my tables are not mapped as entities and this table I have to query
is not mapped I don't want to map it, I want camel to call my predicate if
the predicate returns true call some processor , and check the predicate
every 5 minutes ,
--
View this message in context: http://camel.465427.n5.nabble.com/custom-condition-check-frequently-tp4448674p4448728.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: custom condition check frequently
Posted by Achim Nierbeck <bc...@googlemail.com>.
I suggest you take a look at the jpa component.
With that and a corresponding Entity object this can be achieved.
If you want to check for certain values to be set of the entity
you can define a named query on it.
Am 02.06.2011 19:03, schrieb fachhoch:
> I want to check a table data in my database and if it meets some condtion
> then start some processing , how to do this in camel , currently I have a
> quartz job running every 5 minutes to check this table and if the data
> meets my condition I do some processing , I want to do this in camel please
> suggest me how .
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/custom-condition-check-frequently-tp4448674p4448674.html
> Sent from the Camel - Users mailing list archive at Nabble.com.