Re: FileConsumer always reads the data in system charset/encoding

2010-03-25 Thread Kevin Jackson
Hi, > There used to be a issue in Camel with using CGLib proxied Spring > beans, but I recall that was fixed in 2.2 as well. > And that issue was only when you used Camel @annotations which causes > them to not work as expected. > Spring @Transactional is to my knowledge working. > > Maybe the Spr

Re: FileConsumer always reads the data in system charset/encoding

2010-03-25 Thread Claus Ibsen
On Wed, Mar 24, 2010 at 6:52 PM, Kevin Jackson wrote: > Hi, > > To clear this whole thing up - I can now report that everything is > working as expected, the problem was (and still is) with Spring's > transactional test support, not rolling back the data that my > processing is adding to the datab

Re: FileConsumer always reads the data in system charset/encoding

2010-03-24 Thread Kevin Jackson
Hi, To clear this whole thing up - I can now report that everything is working as expected, the problem was (and still is) with Spring's transactional test support, not rolling back the data that my processing is adding to the database. This meant that I was checking against an old value in the d

Re: FileConsumer always reads the data in system charset/encoding

2010-03-24 Thread Kevin Jackson
Hi, > No it does not read the file beforehand. > > Use Tracer to see the Message Body. > And you have not stated which version of Camel you are using, despite > its highlighted on the how to get support page > http://camel.apache.org/support.html > > Also you should check JIRA etc if there was a k

Re: FileConsumer always reads the data in system charset/encoding

2010-03-24 Thread Claus Ibsen
No it does not read the file beforehand. Use Tracer to see the Message Body. And you have not stated which version of Camel you are using, despite its highlighted on the how to get support page http://camel.apache.org/support.html Also you should check JIRA etc if there was a known issue with it

Re: FileConsumer always reads the data in system charset/encoding

2010-03-24 Thread Kevin Jackson
Hi, Here is my route: http://camel.apache.org/schema/spring";> The file is encoded as i

Re: FileConsumer always reads the data in system charset/encoding

2010-03-24 Thread Kevin Jackson
Hi, > Use > .convertBodyTo(String.class, "utf-8") after the from(file:xxx) to > control the charset used for encoding. Fantastic - should have asked earlier before digging through the src - C'est la vie Kev

Re: FileConsumer always reads the data in system charset/encoding

2010-03-24 Thread Claus Ibsen
Hi Use .convertBodyTo(String.class, "utf-8") after the from(file:xxx) to control the charset used for encoding. On Wed, Mar 24, 2010 at 4:25 PM, Kevin Jackson wrote: > Hi, > > I have a camel application deployed on RHEL5 with a default > encoding/locale of UTF-8 > > I have to download data fro

FileConsumer always reads the data in system charset/encoding

2010-03-24 Thread Kevin Jackson
Hi, I have a camel application deployed on RHEL5 with a default encoding/locale of UTF-8 I have to download data from a remote Windows server (CP1251 or ISO-8859-1/latin-1) My route breaks down the processing of the files into two steps: 1 - download 2 - consume and pass split/tokenized String/b