Re: Camel JPA - Parameterized Queries?

2013-10-20 Thread chatura
This may be little outdated. But I also had that issue with jpa named query dynamic parameters and resolve by extending JpaConsumer with override configureParameters method. I really not sure that is the best way to go appreciate any comment from camel experts. Thanks Chatura -- View this

Re: Camel JPA - Parameterized Queries?

2013-10-20 Thread Babak Vahdat
Hi Since Camel 2.12 there's a 'consumer.parameters' option for this purpose: http://camel.apache.org/jpa#JPA-Options I polished it's description a bit to make it clear how to use it. Takes a while to be updated on the site. Babak chatura wrote This may be little outdated. But I also had

Re: Camel JPA - Parameterized Queries?

2013-10-20 Thread chatura
That's great, But unfortunately I missed the exact option in the documentation and ending up as same implementation as you mention. Thanks Chatura -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-Parameterized-Queries-tp5724046p5741930.html Sent from the Camel -

Writing a Component - passing in arguments

2013-10-20 Thread John D. Ament
Let's say that I'm looking to write a component. I want my component to understand the Object... params that are passed in to it, such that instead of camel processing: toF(foo://%s,something) I want the something to be passed to my component instead. Is this possible?

Camel is not substituting variable expression in route

2013-10-20 Thread javag
I have a route in camel.xml like: route from uri=jms:myfoo / doTry validatesimple${body[subsc]} regex '[a-z0-9]{8}' /simple /validate choice

Re: Writing a Component - passing in arguments

2013-10-20 Thread Willem jiang
Camel support to look up the Object instance reference form the registry (Spring ApplicationContext). Camel URI support to set the parameter with the instance refrence like this “#referenceName”. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: Display only the last message into the browser

2013-10-20 Thread Willem jiang
In most case the queue is serving as first in and first out, if you just want to display the last message, you may need to use aggregator[1] to find the last one. [1]http://camel.apache.org/aggregator2.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog:

Re: Migrate Apache Camel Endpoints

2013-10-20 Thread Willem jiang
The Migrating Endpoints is not what you want. You may consider to use Camel Fabric[1][2] to that kind of work. [1]http://fuse.fusesource.org/fabric/docs/overview.html#Camel_Fabric [2]http://fusesource.com/docs/esbent/7.0/camel_comp_ref/Master.html -- Willem Jiang Red Hat, Inc. Web:

Re: Getting rid of line separator [ BeanIO + Camel ]

2013-10-20 Thread Rachit Gandhi
I looked at the junit for beanio . https://svn.apache.org/repos/asf/camel/trunk/components/camel-beanio/src/test/java/org/apache/camel/dataformat/beanio/BeanIODataFormatComplexTest.java If I change the marshal route to write it to the file...and run the unit test . .it produces the file with a

CXF consumer endpoint + XSLT + Tracer = EmptyStackException

2013-10-20 Thread alapaka
Hi all; Versions: Camel 2.10.6, CXF 2.6.8, ServiceMix 4.5.2 I have a route that consumes a CXF endpoint: works fine I added an XSLT transform to handle the incoming payload: works fine I set trace=true on the route: java.util.EmptyStackException tracing with either the CXF consumer endpoint or

Re: CXF consumer endpoint + XSLT + Tracer = EmptyStackException

2013-10-20 Thread alapaka
I had the cxf endpoint commented out in the route, and that did not come through in the post. here it is: from uri=cxf:bean:OrderService?dataFormat=PAYLOAD/ aloha -- View this message in context:

Re: Display only the last message into the browser

2013-10-20 Thread Taariq Levack
If the aggregator isn't suitable, camel-cache[1] might work better. [1] http://camel.apache.org/cache.html Taariq On Mon, Oct 21, 2013 at 5:00 AM, Willem jiang willem.ji...@gmail.comwrote: In most case the queue is serving as first in and first out, if you just want to display the last