Re: Newbie Pls help: ETL Example Modification Doesn't work

2013-08-11 Thread Willem jiang
Hi , You don't use the rightly. Please change the route like this: -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.

Re: Newbie Pls help: ETL Example Modification Doesn't work

2013-08-11 Thread bmadhekar
here is my code, Ticket is openJpa annotated class created in drools knowledge session, this class has two one-to-many relationships defined. Do I need Xml annotations? http://camel.apache.org/schema/spring";>

Re: Newbie Pls help: ETL Example Modification Doesn't work

2013-08-11 Thread Christian Müller
It looks like you made a mistake in your DSL. Can you share your code? Best, Christian Am 11.08.2013 08:43 schrieb "bmadhekar" : > I tried extending ETL example with Complex class which has child elements, > I > get error in convetBodyTo... does any body know Camel supports parent child > relatio

Re: Newbie Pls help: ETL Example Modification Doesn't work

2013-08-10 Thread bmadhekar
I tried extending ETL example with Complex class which has child elements, I get error in convetBodyTo... does any body know Camel supports parent child relations in class yet? cvc-complex-type.2.3: Element 'convertBodyTo' cannot have character [children], because the type's content type is elem

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-27 Thread Claus Ibsen
On Mon, Sep 27, 2010 at 10:42 AM, shaun.bar...@rulefinancial.com wrote: > > You are a star! Thanks ever so much - I should be able to continue now. I > realise (now thanks to you) I was missing a step. I was trying to make the > target transfomation object the 'controller' object as such and so ex

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-27 Thread shaun.bar...@rulefinancial.com
You are a star! Thanks ever so much - I should be able to continue now. I realise (now thanks to you) I was missing a step. I was trying to make the target transfomation object the 'controller' object as such and so expecting the TryIt object to also be the recipient of the doSomething method. Now

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-27 Thread shaun.bar...@rulefinancial.com
Claus - apologies for going quiet - I eventually had to go home ;) Thanks ever so much for your help - I will try out the attachment and report back. Thanks S -- View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2854

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread Claus Ibsen
Use the method option on the class endpoint to tell Camel which method to invoke http://camel.apache.org/class class:xxx?method=foo On Fri, Sep 24, 2010 at 7:22 PM, shaun.bar...@rulefinancial.com wrote: > > > Ok - done some more experimentation and am more confused than ever if I try > to conve

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread shaun.bar...@rulefinancial.com
if anyone can help - all I want to do is read from jms convert from/to and then write back to jms something like: from( "jms:queue:camel" ) .to( "class:com.source.etf.integration.WibblyWobbly" ); from ("class:com.source.etf.integration.WibblyWobbly")

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread shaun.bar...@rulefinancial.com
.. So to recap is - I am confused by the behaviour here: I want to be able to a) read from a source b) convert it from/to something c) write it to a destination but the example only does the conversion if the destination is jpa and not a class?? -- View this message in context: http://camel.46

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread shaun.bar...@rulefinancial.com
Ok - done some more experimentation and am more confused than ever if I try to convert from a person to the jpa endpoint it works fine (and uses the customertransformer @Converter annotated method. However if you try to convert it to the class end point (the 2nd example below) the transformer is

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread shaun.bar...@rulefinancial.com
So - given that info any ideas why my converter method is simply ignored and the PersonDocument not being marshalled? See the screen shot attached which is the breakpoint at the time my constructor is called - it passes in a String argument which is the file contents. No attempt at conversion occ

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread Claus Ibsen
On Fri, Sep 24, 2010 at 5:53 PM, shaun.bar...@rulefinancial.com wrote: > > Hi Claus > - that is why I was modifying the example project - since it already has the > org/apache/camel/TypeConverter file: and I have added a new @Converter > method to the class that it was already using as the TypeCon

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread shaun.bar...@rulefinancial.com
Hi Claus - that is why I was modifying the example project - since it already has the org/apache/camel/TypeConverter file: and I have added a new @Converter method to the class that it was already using as the TypeConverter in the first place . So would I still need to add in any new configuration

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread Claus Ibsen
You need to add a special file in the JAR to have the converts auto register in Camel when it boot up. See section _Writing your own .._ http://camel.apache.org/type-converter.html Also the Camel in Action book covers transformation and type converters in chapter 3. The book may help clear up a t

Re: Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread shaun.bar...@rulefinancial.com
Sorry - this is for version 2.4.0 -- View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2852848.html Sent from the Camel - Users mailing list archive at Nabble.com.