Newbie Pls help: ETL Example Modification Doesn't work

2010-09-24 Thread shaun.bar...@rulefinancial.com
Hi, I started with the ETL example (http://camel.apache.org/etl-example.html) as I am looking at this library to do some message routing and transformation for a test facility in work. I simply wanted to see how to write and use a Custom Transformer - but it seems that this is not as straightforwa

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.

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 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 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 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
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-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-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