Re: How to get header/property info out from sendBodyAndHeader/sendBodyAndProperty

2013-01-15 Thread Claus Ibsen
On Tue, Jan 15, 2013 at 9:59 PM, cgfulton wrote: > How do I configure the camel context to get the string value from > header/property? In my case I would like to use the exec component and pass > option values using the header/property. > See this FAQ http://camel.apache.org/how-do-i-use-dynamic

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object" *** PROBLEM SOLVED ***

2013-01-15 Thread Babak Vahdat
Am 16.01.13 01:07 schrieb "Chris Wolf" unter : >It was me not RTFM more carefully. Sorry about that. On the main >Camel-JPA page it mentions a query option >called "consumer.resultClass" which can be used to define the result >class for a native query. So when I added that, >it all worked. >

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object" *** PROBLEM SOLVED ***

2013-01-15 Thread Chris Wolf
It was me not RTFM more carefully. Sorry about that. On the main Camel-JPA page it mentions a query option called "consumer.resultClass" which can be used to define the result class for a native query. So when I added that, it all worked. Otherwise, without "consumer.resultClass", the native qu

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-15 Thread Chris Wolf
Babak, Thanks for the detailed reply, but if you look at my first post on this thread, I mentioned that that error message concerning enhancement is misleading. If I configure "consumeDelete=false", there's no error - the entities are created by JPA. I also mentioned I verified enhancement by obs

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-15 Thread Babak Vahdat
Am 15.01.13 21:22 schrieb "Chris Wolf" unter : >I upgraded to OpenJPA-2.2.1. Still have the same issue. Hi The problem you're facing is that the byte-code of your JPA entity has not been enhanced, see your stack trace where it says "Ensure that it has been enhanced." Also take a look at the s

Re: How to get header/property info out from sendBodyAndHeader/sendBodyAndProperty

2013-01-15 Thread cgfulton
How do I configure the camel context to get the string value from header/property? In my case I would like to use the exec component and pass option values using the header/property. http://camel.apache.org/schema/spring";>

Re: unmarshall csv problem with bindy

2013-01-15 Thread Chris Wolf
I tried doing some CSV parsing with bindy and had some issues due to variable length records in the same file and other format weirdness. I ended up using camel-beanio. It's very flexible/configurable and works well. -Chris http://camel.apache.org/beanio.html http://beanio.org On Wed, Jan

Re: JPA component throwing "Attempt to cast instance [Ljava.lang.Object"

2013-01-15 Thread Chris Wolf
I upgraded to OpenJPA-2.2.1. Still have the same issue. Here's the route, followed by console output, followed by entities code. BTW, I notice that the data type of Body coming out of the jpa endpoint is of type Object[], I think this is part of the problem, because I put a breakpoint on line

Concat routes

2013-01-15 Thread klauss42
Hello Camel experts I have multiple routes that perform some background processing, in detail the routes just trigger some Spring-Batch jobs. I want to be able to start each single route alone, therefore I am using the Servlet component to be able to trigger the routes by URL. Now I wanted to conc

Re: CXFRS: Share port number across bundles

2013-01-15 Thread Martin Stiborský
Hi, thanks for answers and the idea, it sounds really good, I'll go this way definitelly. Right now, I have done that static - hardcoded, in my blueprint.xml: But the "dynamic" solution sound quite better and I like it and it's logical, thanks to the nature of a OSGi module. Thanks! On Tue,

Re: Enhancement for Spring-Camel porperty bridge?

2013-01-15 Thread Claus Ibsen
On Tue, Jan 15, 2013 at 12:12 PM, Ralf Steppacher wrote: > Hello, > > Camel 2.10 introduced the BridgePropertyPlaceholderConfigurer bean as a > replacement of the Spring . > > The latter > - may ignore missing property files (ignore-resource-not-found="true") > - falls back to system properties if

Re: Camel Spring XML

2013-01-15 Thread Claus Ibsen
On Tue, Jan 15, 2013 at 9:32 AM, Manoj Kolhe wrote: > Now the next question on my mind, > > This is plain example for fetching request parameters as GET method. > > How to pass the parameters to as POST? > Why dont you try sending a HTTP POST to the Camel servlet and see what happens. > > > > -

Re: RESTful route with Apache CXF

2013-01-15 Thread Ralf Steppacher
OK. Thanks again! Ralf -Original Message- From: Sergey Beryozkin Reply-to: users@camel.apache.org To: users@camel.apache.org Subject: Re: RESTful route with Apache CXF Date: Tue, 15 Jan 2013 11:11:37 + Hi Ralf On 15/01/13 11:01, Ralf Steppacher wrote: > Sergey, > > sorry for the ext

Enhancement for Spring-Camel porperty bridge?

2013-01-15 Thread Ralf Steppacher
Hello, Camel 2.10 introduced the BridgePropertyPlaceholderConfigurer bean as a replacement of the Spring . The latter - may ignore missing property files (ignore-resource-not-found="true") - falls back to system properties if a requested property could not be found in the (potentially non-exist

Re: RESTful route with Apache CXF

2013-01-15 Thread Sergey Beryozkin
Hi Ralf On 15/01/13 11:01, Ralf Steppacher wrote: Sergey, sorry for the extremely delayed response! np, better later than never :-), What you suggest would work for me. Though it would be nice if the steps "restore" and "complete" were implicitly invoked. But I know way too little about the in

Re: RESTful route with Apache CXF

2013-01-15 Thread Ralf Steppacher
Sergey, sorry for the extremely delayed response! What you suggest would work for me. Though it would be nice if the steps "restore" and "complete" were implicitly invoked. But I know way too little about the internal workings of Camel and the route construction to suggest that this was possible.

Re: CXFRS: Share port number across bundles

2013-01-15 Thread Raul Kripalani
Hi, At last we implemented option 1, to avoid introducing more complexity into our scenario. But yes, the idea is exactly as Sergey mentioned. You'd probably use OSGi services, where the master resource is exposed under "/" and implements an OSGi Service Listener to receive callbacks every time a

Re: Help on unsubscribing

2013-01-15 Thread Claus Ibsen
Hi See details at ASF about mailing lists. There should be more information when you have trouble with unsubscribing etc http://www.apache.org/foundation/mailinglists.html On Tue, Jan 15, 2013 at 5:20 AM, wrote: > I have tried to unsuccessfully unsubscribe from Camel mailing list by mailing

Re: CXFRS: Share port number across bundles

2013-01-15 Thread Sergey Beryozkin
Hi On 12/01/13 14:53, Martin Stiborský wrote: Hi Raul and Sergey, Guys please, could you explain more for me the "second option" ? I missed the point I guess. I thought the idea around sharing the port was actually to do with dynamically attaching new contexts to the base address like "localho

Re: Camel Spring XML

2013-01-15 Thread Manoj Kolhe
Now the next question on my mind, This is plain example for fetching request parameters as GET method. How to pass the parameters to as POST? -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Spring-XML-tp5725366p5725569.html Sent from the Camel - Users mailing list ar

Re: Camel Spring XML

2013-01-15 Thread Manoj Kolhe
Thanks a lot!! Issue resolved Cheers, Manoj -- View this message in context: http://camel.465427.n5.nabble.com/Camel-Spring-XML-tp5725366p5725568.html Sent from the Camel - Users mailing list archive at Nabble.com.