ftertime.Thanks.
>
> Ah I get it now :). A FileExchange has had its body changed, but when
> its copyied, the body is not copied as well. DOH! It turned out to be
> my mistake - I overloaded the wrong method (copy() instead of
> newInstance()) - I've added a test case to FileExchangeTest for this
> and patched it in trunk
>
> Incidentlaly for CAMEL-90 I fixed the FileExchange.in.body being a
> FileInputStream; its now a File, so you can re-parse it many times
> etc.
>
> --
> James
> ---
> http://macstrac.blogspot.com/
>
>
:)
--
View this message in context:
http://www.nabble.com/Problem-with-ETL-example-tf4235529s22882.html#a12070485
Sent from the Camel - Users mailing list archive at Nabble.com.
On 8/9/07, James Zhang <[EMAIL PROTECTED]> wrote:
> James.Strachan wrote:
> >
> > On 8/8/07, James Zhang <[EMAIL PROTECTED]> wrote:
> >> hi:
> >> I should modify the "org.apache.camel.processor.Pipeline" to make the
> >> example finally works.
> >>
> >> protected Exchange createNextExchange(Pro
o be sure we've fixed it etc.
>
> --
> James
> ---
> http://macstrac.blogspot.com/
>
>
Maybe it's wrong what I wrote last night.
The "getIn().getBody()"method of the copy fileExchange will return a
instance of FileInputStream,not null.
But It should re
On 8/8/07, James Zhang <[EMAIL PROTECTED]> wrote:
> hi:
> I should modify the "org.apache.camel.processor.Pipeline" to make the
> example finally works.
>
> protected Exchange createNextExchange(Processor producer, Exchange
> previousExchange) {
> Exchange answer = copyExchangeStrategy(
.getBody();
if (input != null) {
answer.getIn().setBody(input);
}
//-JamesZhang ADD END
// now lets set the input of the next exchange to the output of the
// previous message if it is not null
Object output = previousExchange.ge
On 8/8/07, James Zhang <[EMAIL PROTECTED]> wrote:
>
>
>
> James.Strachan wrote:
> >
> > On 8/8/07, jameszhang <[EMAIL PROTECTED]> wrote:
> >> I have run the following testcase,and the result is failed too.
> >>
> >> //-- START SNIPPET
> >> package org.apache.camel.component.file;
>
ed this test case to camel-core along with a patch to fix it -
> many thanks.
> --
> James
> ---
> http://macstrac.blogspot.com/
>
>
OK.
I think I can write the spring example now.
--
View this message in context:
http://www.nabble.com/Problem-with-ETL-example-tf4235529s22882.html#a12052244
Sent from the Camel - Users mailing list archive at Nabble.com.
On 8/8/07, jameszhang <[EMAIL PROTECTED]> wrote:
> I have run the following testcase,and the result is failed too.
>
> //-- START SNIPPET
> package org.apache.camel.component.file;
>
> import java.io.File;
>
> import org.apache.camel.ContextTestSupport;
> import org.apache.camel.Exc
change instance",
exchange instanceof FileExchange);
}
}
//-- END SNIPPET
Thanks very much.
--
View this message in context:
http://www.nabble.com/Problem-with-ETL-example-tf4235529s