You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "shaun.barker@rulefinancial.com" <sh...@rulefinancial.com> on 2010/09/24 17:43:49 UTC

Newbie Pls help: ETL Example Modification Doesn't work

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 straightforwards as I
hoped. So (after writing my own project and having to accept failure) I
altered EtlRoutes.java to this:
public class EtlRoutes extends SpringRouteBuilder {
    public void configure() throws Exception {

//        from("file:src/data?noop=true")
//            .convertBodyTo(PersonDocument.class)
//            .to("jpa:org.apache.camel.example.etl.CustomerEntity");
//
//        // the following will dump the database to files
//       
from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false&delay=3000&consumeLockEntity=false")
//            .setHeader(Exchange.FILE_NAME, el("${in.body.userName}.xml"))
//            .to("file:target/customers");

//      from("file:src/data?noop=true")
//      .convertBodyTo(PersonDocument.class)
//      .to("file:target/customers");
      
        from("file:src/data?noop=true")
        .convertBodyTo(PersonDocument.class)
        .to("class:org.apache.camel.example.etl.TryIt");        
        
//        from("file:target/customers?noop=true")
//        .convertBodyTo(CustomerEntity.class)
//        .to("class:org.apache.camel.example.etl.TryIt");
        
//        from("class:org.apache.camel.example.etl.TryIt")
//        .setHeader(Exchange.FILE_NAME, el("${in.body.fullDetails}.txt"))
//        .to("file:target/tried");
        
    }
}

and added a @Converter to the existing CustomerTransformer transformer like
so:


 @Converter
    public TryIt toTryIt( PersonDocument customer, Exchange exchange )
throws Exception {
        TryIt it = new TryIt();
        it.setDetails( customer.getFirstName(), customer.getLastName(),
customer.getCity(), "02" );
        return it;
    }


Yet no matter what I do the converter method is not used and instead the
TryIt constructor arg is called with a value of GenericFile (i.e the raw
file contents) the PersonDocument object hasn't been converted to and I am
none the wiser why? This is most confusing since all I wanted to do is
proove how to read, transform and write some simple data (in real life it
will be more jms/xm/transform/xml ..)

Any help/tips etc would be really appreciated?

Thanks
Shaun
-- 
View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2852839.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by "shaun.barker@rulefinancial.com" <sh...@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")
            .to( "file:target/messages/jms"  );

In reality I need to convert from one type of xml obejct to another between
the queues hence all these questions about converters?

Thx
-- 
View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2853029.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by Willem jiang <wi...@gmail.com>.
Hi ,

You don't use the <convertyBodyTo> rightly.
Please change the route like this:
<convertBodyTo type="com.mycompany.product.service.jpa.Ticket"/>


--  
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.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, August 12, 2013 at 3:44 AM, bmadhekar wrote:

> 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?
>  
> <camelContext id="camelContext"
> xmlns="http://camel.apache.org/schema/spring">
> <route>
> <from uri="activemq:queue:commandsQueue" />
> <policy ref="fsDroolsPolicy">
> <unmarshal ref="xstream" />
> <to uri="drools:fsGridNode/fsKnowledgeSession" />
> <marshal ref="xstream" />
> <log message="${body}"/>
> </policy>
> </route>
>  
> <route>
> <from uri="direct://fsKnowledgeSession"/>
> <policy ref="fsDroolsPolicy">
> <convertBodyTo>Ticket.class</convertBodyTo>
> <to uri="jpa:com.mycompany.product.service.jpa.Ticket"/>
>  
> <log message="${body}"/>
> </policy>
> </route>
> </camelContext>
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p5737088.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




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

Posted by bmadhekar <bm...@hotmail.com>.
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?

<camelContext id="camelContext"
xmlns="http://camel.apache.org/schema/spring">
    <route>
      <from uri="activemq:queue:commandsQueue" />
      <policy ref="fsDroolsPolicy">
        <unmarshal ref="xstream" />
        <to uri="drools:fsGridNode/fsKnowledgeSession" />
        <marshal ref="xstream" />
        <log message="${body}"/>
      </policy>
    </route>

  <route>
    	<from uri="direct://fsKnowledgeSession"/>
    	<policy ref="fsDroolsPolicy">
    		<convertBodyTo>Ticket.class</convertBodyTo>
    		<to uri="jpa:com.mycompany.product.service.jpa.Ticket"/>
    	
    		<log message="${body}"/>
    	</policy>
    </route>
  </camelContext>



--
View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p5737088.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by Christian Müller <ch...@gmail.com>.
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" <bm...@hotmail.com>:

> 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 element-only.
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p5737072.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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

Posted by bmadhekar <bm...@hotmail.com>.
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 element-only.



--
View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p5737072.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by "shaun.barker@rulefinancial.com" <sh...@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

Posted by "shaun.barker@rulefinancial.com" <sh...@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 occurs at all?
http://camel.465427.n5.nabble.com/file/n2852900/etlissue.bmp 
-- 
View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2852900.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by "shaun.barker@rulefinancial.com" <sh...@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.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2853010.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by Claus Ibsen <cl...@gmail.com>.
On Mon, Sep 27, 2010 at 10:42 AM, shaun.barker@rulefinancial.com
<sh...@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 expecting
> the TryIt object to also be the recipient of the doSomething method. Now
> your example illustrates this perfectly. Sorry for being a numbskull - ahh a
> refrshing solution at the beginning of the week - nice!
>

Ah glad you got it working. Yeah usually your model objects dont
contain logic, which you leave in the controller/service layer.

Anyway welcome to the Camel community and don't heistate to ask
questions at the user mailing list.



> S
> --
> View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2854940.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

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

Posted by "shaun.barker@rulefinancial.com" <sh...@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
your example illustrates this perfectly. Sorry for being a numbskull - ahh a
refrshing solution at the beginning of the week - nice!

S
-- 
View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2854940.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by "shaun.barker@rulefinancial.com" <sh...@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-tp2852839p2854905.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I have attached a modified example which works. Take a look at it.


On Fri, Sep 24, 2010 at 7:50 PM, Claus Ibsen <cl...@gmail.com> wrote:
> 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.barker@rulefinancial.com
> <sh...@rulefinancial.com> wrote:
>>
>>
>> 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
>> ignored and you get a weird exception stating the method call was ambiguous
>> .
>>
>> BTW - you cannot run the routes below at the same time - you need to comment
>> out one and then swap it around ;)
>>
>>
>> //this works
>>        from("file:src/data?noop=true")
>>            .convertBodyTo(PersonDocument.class)
>>            .to("jpa:org.apache.camel.example.etl.CustomerEntity");
>> //this doesn't work
>>        from("file:src/data?noop=true")
>>        .convertBodyTo(PersonDocument.class)
>>        .to("class:org.apache.camel.example.etl.CustomerEntity");
>>
>>
>> Exception if you use the class endpoint:
>>
>> mel Thread 0 - file://src/data] GenericFileOnCompletion        ERROR Caused
>> by: [org.apache.camel.component.bean.AmbiguousMethodCallException -
>> Ambiguous method invocations possible: [public void
>> org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsFromObjectId(java.lang.Object),
>> public void
>> org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsToObjectId(java.lang.Object)].
>> Exchange[GenericFileMessage with body: Person[user: james]]]
>> org.apache.camel.component.bean.AmbiguousMethodCallException: Ambiguous
>> method invocations possible: [public void
>> org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsFromObjectId(java.lang.Object),
>> public void
>> org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsToObjectId(java.lang.Object)].
>> Exchange[GenericFileMessage with body: Person[user: james]]
>>
>> --
>> View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2853007.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

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

Posted by Claus Ibsen <cl...@gmail.com>.
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.barker@rulefinancial.com
<sh...@rulefinancial.com> wrote:
>
>
> 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
> ignored and you get a weird exception stating the method call was ambiguous
> .
>
> BTW - you cannot run the routes below at the same time - you need to comment
> out one and then swap it around ;)
>
>
> //this works
>        from("file:src/data?noop=true")
>            .convertBodyTo(PersonDocument.class)
>            .to("jpa:org.apache.camel.example.etl.CustomerEntity");
> //this doesn't work
>        from("file:src/data?noop=true")
>        .convertBodyTo(PersonDocument.class)
>        .to("class:org.apache.camel.example.etl.CustomerEntity");
>
>
> Exception if you use the class endpoint:
>
> mel Thread 0 - file://src/data] GenericFileOnCompletion        ERROR Caused
> by: [org.apache.camel.component.bean.AmbiguousMethodCallException -
> Ambiguous method invocations possible: [public void
> org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsFromObjectId(java.lang.Object),
> public void
> org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsToObjectId(java.lang.Object)].
> Exchange[GenericFileMessage with body: Person[user: james]]]
> org.apache.camel.component.bean.AmbiguousMethodCallException: Ambiguous
> method invocations possible: [public void
> org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsFromObjectId(java.lang.Object),
> public void
> org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsToObjectId(java.lang.Object)].
> Exchange[GenericFileMessage with body: Person[user: james]]
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2853007.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

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

Posted by "shaun.barker@rulefinancial.com" <sh...@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
ignored and you get a weird exception stating the method call was ambiguous
.

BTW - you cannot run the routes below at the same time - you need to comment
out one and then swap it around ;)


//this works
        from("file:src/data?noop=true")
            .convertBodyTo(PersonDocument.class)
            .to("jpa:org.apache.camel.example.etl.CustomerEntity");
//this doesn't work        
        from("file:src/data?noop=true")
        .convertBodyTo(PersonDocument.class)
        .to("class:org.apache.camel.example.etl.CustomerEntity");


Exception if you use the class endpoint:

mel Thread 0 - file://src/data] GenericFileOnCompletion        ERROR Caused
by: [org.apache.camel.component.bean.AmbiguousMethodCallException -
Ambiguous method invocations possible: [public void
org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsFromObjectId(java.lang.Object),
public void
org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsToObjectId(java.lang.Object)].
Exchange[GenericFileMessage with body: Person[user: james]]]
org.apache.camel.component.bean.AmbiguousMethodCallException: Ambiguous
method invocations possible: [public void
org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsFromObjectId(java.lang.Object),
public void
org.apache.camel.example.etl.CustomerEntity.pcCopyKeyFieldsToObjectId(java.lang.Object)].
Exchange[GenericFileMessage with body: Person[user: james]]

-- 
View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2853007.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Sep 24, 2010 at 5:53 PM, shaun.barker@rulefinancial.com
<sh...@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 TypeConverter in the
> first place . So would I still need to add in any new configuration in those
> circumstances?
>

Ah okay. No you dont need to add a 2nd. Its just a package name to
tell Camel to go scan in that package for @Converter classes.


> Thanks
> --
> View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2852860.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

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

Posted by "shaun.barker@rulefinancial.com" <sh...@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 in those
circumstances?

Thanks
-- 
View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2852860.html
Sent from the Camel - Users mailing list archive at Nabble.com.

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

Posted by Claus Ibsen <cl...@gmail.com>.
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 thing or two for you.

If you want to start simple then you may want to use mock endpoints
instead of JPA/JDBC to focus on the routing and transformation.
Then you can always later start to battle with the database.



On Fri, Sep 24, 2010 at 5:43 PM, shaun.barker@rulefinancial.com
<sh...@rulefinancial.com> wrote:
>
> 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 straightforwards as I
> hoped. So (after writing my own project and having to accept failure) I
> altered EtlRoutes.java to this:
> public class EtlRoutes extends SpringRouteBuilder {
>    public void configure() throws Exception {
>
> //        from("file:src/data?noop=true")
> //            .convertBodyTo(PersonDocument.class)
> //            .to("jpa:org.apache.camel.example.etl.CustomerEntity");
> //
> //        // the following will dump the database to files
> //
> from("jpa:org.apache.camel.example.etl.CustomerEntity?consumeDelete=false&delay=3000&consumeLockEntity=false")
> //            .setHeader(Exchange.FILE_NAME, el("${in.body.userName}.xml"))
> //            .to("file:target/customers");
>
> //      from("file:src/data?noop=true")
> //      .convertBodyTo(PersonDocument.class)
> //      .to("file:target/customers");
>
>        from("file:src/data?noop=true")
>        .convertBodyTo(PersonDocument.class)
>        .to("class:org.apache.camel.example.etl.TryIt");
>
> //        from("file:target/customers?noop=true")
> //        .convertBodyTo(CustomerEntity.class)
> //        .to("class:org.apache.camel.example.etl.TryIt");
>
> //        from("class:org.apache.camel.example.etl.TryIt")
> //        .setHeader(Exchange.FILE_NAME, el("${in.body.fullDetails}.txt"))
> //        .to("file:target/tried");
>
>    }
> }
>
> and added a @Converter to the existing CustomerTransformer transformer like
> so:
>
>
>  @Converter
>    public TryIt toTryIt( PersonDocument customer, Exchange exchange )
> throws Exception {
>        TryIt it = new TryIt();
>        it.setDetails( customer.getFirstName(), customer.getLastName(),
> customer.getCity(), "02" );
>        return it;
>    }
>
>
> Yet no matter what I do the converter method is not used and instead the
> TryIt constructor arg is called with a value of GenericFile (i.e the raw
> file contents) the PersonDocument object hasn't been converted to and I am
> none the wiser why? This is most confusing since all I wanted to do is
> proove how to read, transform and write some simple data (in real life it
> will be more jms/xm/transform/xml ..)
>
> Any help/tips etc would be really appreciated?
>
> Thanks
> Shaun
> --
> View this message in context: http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p2852839.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus