Re: HTTPS - help required

2009-04-28 Thread Claus Ibsen
Hi Yeah looks cool. Contributions is much welcome. On Tue, Apr 28, 2009 at 8:31 AM, Willem Jiang wrote: > Cool, we love the contribution , please feel free to create a JIRA for > the patch. Please also submit a unit test and update the wiki for it :). > > Willem > > huntc wrote: >> Hi there, >>

CSV options: howto setting ?

2009-04-28 Thread Campa
Hi guys, Reading the documentation for CSV ( http://camel.apache.org/csv.html ) I have see that is possible to control the setting of the CSVparser for example using the option "CSVConfig" , but how ? How i can set "options" ? For example if I have to change the separator char using ":" in place

Camel 2.0-M1 JUnit tests fail

2009-04-28 Thread zigo
I have just downloaded Camel 2.0-M1 sources on my Mac (OS X 10.5.6) and issued 'mvn install'. The test org.apache.camel.converter.IOConverterTest fails because of a trailing line feed character in test file apache-camel-2.0-M1/src/camel-core/src/test/resources/org/apache/camel/converter/dummy.txt

Re: CSV options: howto setting ?

2009-04-28 Thread Claus Ibsen
Hi If the documentation is sparse then you can also try looking into the unit tests :) Basically with data formats its just objects so you just create your own object and set the config/options as you like. And then use the generic marshal / unmarshal methods. >From the unit test:

Re: Camel 2.0-M1 JUnit tests fail

2009-04-28 Thread Claus Ibsen
On Tue, Apr 28, 2009 at 10:10 AM, zigo wrote: > > I have just downloaded Camel 2.0-M1 sources on my Mac (OS X 10.5.6) and > issued 'mvn install'. > > The test org.apache.camel.converter.IOConverterTest fails because of a > trailing line feed character in test file > apache-camel-2.0-M1/src/camel-c

Re: Camel 2.0-M1 JUnit tests fail

2009-04-28 Thread zigo
Claus Ibsen-2 wrote: > > Hi > > Strange. The source from SVN does not have a new line at the end of > the dummy.txt file. > Maybe the maven release goals tamper with the files :) > > I guess it is a tar problem: I have read somewhere that unix-like systems silently add a newline character a

Re: CSV options: howto setting ?

2009-04-28 Thread Campa
Claus Ibsen-2 wrote: > > ... > CsvDataFormat customCsv = new CsvDataFormat(); > CSVConfig custom = new CSVConfig(); > custom.setDelimiter(';'); > custom.addField(new CSVField("foo")); > custom.addField(new CSVField(

Re: Camel 2.0-M1 JUnit tests fail

2009-04-28 Thread Claus Ibsen
On Tue, Apr 28, 2009 at 10:32 AM, zigo wrote: > > > > Claus Ibsen-2 wrote: >> >> Hi >> >> Strange. The source from SVN does not have a new line at the end of >> the dummy.txt file. >> Maybe the maven release goals tamper with the files :) >> >> > > I guess it is a tar problem: I have read somewher

Re: CSV options: howto setting ?

2009-04-28 Thread Claus Ibsen
On Tue, Apr 28, 2009 at 10:41 AM, Campa wrote: > > > > Claus Ibsen-2 wrote: >> >> ... >>                 CsvDataFormat customCsv = new CsvDataFormat(); >>                 CSVConfig custom = new CSVConfig(); >>                 custom.setDelimiter(';'); >>                 custom.addField(new CSVFiel

Re: CSV options: howto setting ?

2009-04-28 Thread Claus Ibsen
Hi You can try the 2.0-SNAPSHOT. There are some instructions at the download page http://camel.apache.org/download.html About how to set the maven repository if using maven. Or where you can find a .zip with the 2.0-SNAPSHOT. On Tue, Apr 28, 2009 at 10:45 AM, Claus Ibsen wrote: > On Tue, Apr 2

Re: Camel 2.0-M1 JUnit tests fail

2009-04-28 Thread Claus Ibsen
Hi I have committed a fix in the trunk: rev 769305. -- Claus Ibsen Apache Camel Committer Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus Apache Camel Reference Card: http://refcardz.dzone.com/refcardz/enterprise-integrat

Re: CSV options: howto setting ?

2009-04-28 Thread Campa
Claus Ibsen-2 wrote: > > On Tue, Apr 28, 2009 at 11:31 AM, Campa > wrote: >> >> >> Claus Ibsen-2 wrote: >>> >>> Hi >>> >>> You can try the 2.0-SNAPSHOT. There are some instructions at the >>> download >>> page >>> http://camel.apache.org/download.html >>> >>> About how to set the maven reposit

Re: CSV options: howto setting ?

2009-04-28 Thread Claus Ibsen
On Tue, Apr 28, 2009 at 11:31 AM, Campa wrote: > > > Claus Ibsen-2 wrote: >> >> Hi >> >> You can try the 2.0-SNAPSHOT. There are some instructions at the download >> page >> http://camel.apache.org/download.html >> >> About how to set the maven repository if using maven. Or where you can >> find a

Re: CSV options: howto setting ?

2009-04-28 Thread Campa
Claus Ibsen-2 wrote: > > Hi > > You can try the 2.0-SNAPSHOT. There are some instructions at the download > page > http://camel.apache.org/download.html > > About how to set the maven repository if using maven. Or where you can > find a .zip with the 2.0-SNAPSHOT. > > Done! But the met

Re: Messages not being delivered once SEDA concurrentConsumers set

2009-04-28 Thread rsmith
Found the problem - concurrentConsumers had to be specified both at the 'from' endpoint as well as the 'to' endpoint. Following is a minimal project that demonstrates this: http://www.nabble.com/file/p23290248/camel_concurrent_seda.tar.bz2 camel_concurrent_seda.tar.bz2 . Is this a bug? Claus

Convert File to String with encoding

2009-04-28 Thread Christian Schneider
Hi, I am having the problem that I need to read a file with the FileEndpoint and process it as a String in my own processor. I use the convertBody(String.class) to make a string out of the file contents. Unfortunately there is no way to set the encoding to use. In my case the File content is xm

Re: Convert File to String with encoding

2009-04-28 Thread Claus Ibsen
Hi You can set a property on the Exchange with the encoding. Then the type converters (most of them) will use this when converting from byte based. There should be a constant for the key in Exchange.CHARSET_NAME And there should be a setProperty DSL you can do before the convert body to. But it