shutdown strategy is set on context level / way of route level?

2017-07-26 Thread onders
Hi, As per my understanding, shutdown strategy is set per camelcontext. Is there a way / other ways where we can apply shutdown strategy or custom shutdown implementation per route(s) in a camel context? In my use case, i have number of events stored in database already. In order to avoid reproce

Re: enrich EIP with sql component

2017-07-07 Thread onders
This route is working correctly. There is a datatype issue for date fields for sql component. but i am sure there is not an easy way to fix it. because sql component may be running for different vendor. for keeping simple i converted date datatype to string representation by using sql features. fo

enrich EIP with sql component

2017-07-07 Thread onders
Hi, I have a route as below; from("seda:A?concurrentConsumers=2") .enrich("sql:select X from test_table where id = :#${body.getId}?outputClass=" + MyX.class.getName()", new AggregationStrategy() { @Override public Exchange agg

SQL component - comparing consumer against database

2017-07-07 Thread onders
Hello, I want to ask you question about a design choice. (maybe there is an existing EIP / composite EIPS together out of box, which i am not already familiar ) Think of you have X number of rows in a table. (which will continuosly get new rows) And you want to consume every row in that table an

Re: Camel CXF Simple Frontend warning

2017-07-02 Thread onders
please see the methods createClientFactory[1], in CxfEndpoint or CxfSpringEndpoint classes. I think based on your client stubs, Camel creates instances of client stub objects, so i suppose this depends and client stub classes and your configuration. [1] https://github.com/apache/camel/blob/mas

split by byte chunks

2017-05-30 Thread onders
Hi, Split eip supports tokenizing by a delimiter and grouping as below; from("file:inbox") .split().tokenize("\n", 1000).streaming() .to("activemq:queue:order"); Is there a specific reason why we don't have such like. from("file:inbox") .split().tokenizeByByteSize(1024, 1000).streaming

Re: Aggregator + (LevelDB or HawtDB for persistency) incorrect behavior

2016-11-07 Thread onders
btw, i tried both leveldb and hawtdb as aggregationrepository. or -- View this message in context: http://camel.465427.n5.nabble.com/Aggregator-LevelDB-or-HawtDB-for-persistency-incorrect-behavior-tp5765524p578

Re: Aggregator + (LevelDB or HawtDB for persistency) incorrect behavior

2016-11-07 Thread onders
Hi, I am usign all camel core and components as of 2.17.3. This issue seems to be still up. Under examples/camel-example-aggregator i can test it is working. as of route below; aggregation is not completed and not output file is getting generated. (btw, if i do aggregate without persistence, it

Re: CacheProducer requiring the same config params in java dsl

2016-08-08 Thread onders
any idea? -- View this message in context: http://camel.465427.n5.nabble.com/CacheProducer-requiring-the-same-config-params-in-java-dsl-tp5786061p5786180.html Sent from the Camel - Users mailing list archive at Nabble.com.

CacheProducer requiring the same config params in java dsl

2016-08-05 Thread onders
One of my friend is having such an issue as stated on stackoverflow. Does anyone have an idea? http://stackoverflow.com/questions/37488705/apache-camel-cache-configuration-is-not-working/38728611#38728611 Thx -- View this message in context: http://camel.465427.n5.nabble.com/CacheProducer-re

Re: Camel FTP design issue

2016-06-19 Thread onders
i would expect the latter one as far i understand. test routes of these 3 steps would make it more clear -- View this message in context: http://camel.465427.n5.nabble.com/Camel-FTP-design-issue-tp5784192p5784193.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: ConcurrentModificationException during route listing

2016-05-18 Thread onders
ConcurrentModificationException happens to be due the fact that you are trying to modify the collection whereas you are traversing it. It's hard to help you unless we know some details of design of your route. If you can provide details, we can give it a shot.. -- View this message in context:

Re: DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component

2016-04-07 Thread onders
thanks for the guidance. -- View this message in context: http://camel.465427.n5.nabble.com/DefaultSqlPrepareStatementStrategy-lookupParameter-when-onConsume-used-in-SQL-component-tp5780437p5780671.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component

2016-04-07 Thread onders
Hmm.. I think i misunderstood the route conceptually. What i thought was that below is a single route; from("sql:select rowid vrowid from myTable where nstatus = 0?outputClass=" + MyBean.class.getName() + "&onConsume=update myTable set nstatus = 1 where rowid = :#${body.getVrowid

Re: DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component

2016-04-07 Thread onders
no, this does not help :( when i debug, interestingly i can see onConsume gets exhange's body as the output of bean bound on from("direct:generateLine"...) route which is LineGenerator.. from("sql:select rowid vrowid from myTable where nstatus = 0?outputClass=" + MyBean.class.getName()

Re: DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component

2016-04-06 Thread onders
Here it is; import java.io.Serializable; public class MyBean implements Serializable { /** * */ private static final long serialVersionUID = 1L; private String vrow_id; public String getVrow_id() { return vrow_id

Re: DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component

2016-04-06 Thread onders
I think the code snippet i sent earlier had outputClass option missing. (I was playing it around). So what i meant to describe was as the following... from("sql:select rowid vrow_id from myTable where nstatus = 0?*outputClass=" + MyBean.class.getName() + "*&onCons

Re: DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component

2016-04-06 Thread onders
Hi, This is the route code. from("sql:select rowid vrow_id from myTable where nstatus = 0" + MyBean.class.getName() + "&onConsume=update myTable set nstatus = 1 where VROW_ID = :#${body.vrow_id}") .r

Re: DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component

2016-04-06 Thread onders
Did anybody have a chance to look at it? Regards Önder -- View this message in context: http://camel.465427.n5.nabble.com/DefaultSqlPrepareStatementStrategy-lookupParameter-when-onConsume-used-in-SQL-component-tp5780437p5780585.html Sent from the Camel - Users mailing list archive at Nabble.co

DefaultSqlPrepareStatementStrategy lookupParameter when onConsume used in SQL component

2016-04-04 Thread onders
Hi, I have a simple route as the following; from("sql:select rowid vrow_id from myTable where nstatus = 0" + MyBean.class.getName() + "&onConsume=update myTable set nstatus = 1 where VROW_ID = :#${body.vrow_id}") .ro