Re: Camel JPA endpoint consumer problem

2014-07-05 Thread Claus Ibsen
Hi

Are you sure there is data in the database. You can set DEBUG logging
on org.apache.camel.component.jpa to see what happens.



On Fri, Jul 4, 2014 at 2:32 PM, chanducompute chanducomp...@yahoo.co.in wrote:
 Hi Claus,

 Thank you very much for the suggestion. As you suggested, I have modified
 the route as below

 from(
 jpa:com.test.persistence.entity.ParameterMappings?consumer.namedQuery=chandraconsumer.delay=5000)
 .log(${body});


 I am now not getting any exception, but the scheduler is not getting invoked
 and also the results are not getting printed. I am not seeing anything in
 the logs

 What could be the reason?


 Regards,
 Chandu.



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/Camel-JPA-endpoint-consumer-problem-tp5753332p5753356.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/


Re: Enricher EIP skips AggregationStrategy if Exchange contains exception

2014-07-05 Thread Claus Ibsen
Hi

A bit late for the reply. But I think you spotted something, so I
logged a ticket
https://issues.apache.org/jira/browse/CAMEL-7581

On Tue, Jan 28, 2014 at 12:34 PM, Elvio Caruana (ecaruana)
ecaru...@cisco.com wrote:
 Hi,

 Looking at the Enricher source code, it looks to me that if an exception is 
 set and unhandled in a route called by the Enrich step, then the 
 AggregationStrategy is skipped (although the state, including exceptions is 
 copied over to the original exchange (Exchange. 
 copyResultsPreservePattern(resultExchange, sourceExchange))

 But this means that this is different behaviour from the way exceptions have 
 to be handled manually in the Splitter EIP. What's the reasoning behind this?

 Thanks,
 Elvio



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/


Re: How to call a bean after all files has been processed?

2014-07-05 Thread Christian Müller
This is the intended behavior.

To achieve the behavior you want, I propose the followings:
- use the file consumers Exchange property CamelBatchComplete [1] to know
which file is the last one
- use an Aggregator [2] with a custom completion Predicate before you are
calling your teaserService

[1] http://camel.apache.org/file2.html
[2] http://camel.apache.org/aggregator2.html

Best,

Christian
-

Software Integration Specialist

Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member

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


On Thu, Jul 3, 2014 at 5:25 PM, zzkozak mar...@pikula.de wrote:

 I wrote the following route and expected that the bean 'teaserService'
 should
 be called only one time, at the end of processing of all files, but ...
 it's
 called after processing of each file:

 How to achieve such a behavior?

 Thanks



 --
 View this message in context:
 http://camel.465427.n5.nabble.com/How-to-call-a-bean-after-all-files-has-been-processed-tp5753293.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



Re: Return Value from Python Script Not In Message Body

2014-07-05 Thread Tim Dudgeon
I created a JIRA issue for this:
https://issues.apache.org/jira/browse/CAMEL-7582

Tim



--
View this message in context: 
http://camel.465427.n5.nabble.com/Return-Value-from-Python-Script-Not-In-Message-Body-tp5724056p5753387.html
Sent from the Camel - Users mailing list archive at Nabble.com.