Hmm. Thanks for helping me start to think about things.
So it looks like I was originally trying to do this:

1. take RS or WS Object into process method
2. wiretap Object into queue
3. write tapped Object to file
4. return from process method

So, what _should_ I do if all I want is to take an CXF RS Object in, then
add it to a queue which is part of a totally different flow?

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (855) BASE-LOGIC: (227-3564-42)
p. (478) BASE-LOGIC (227-3564-42)
f. (855) BASE-LOGIC: (227-3564-42)

Website: http://www.baselogic.com
Blog: http://www.baselogic.com/blog/
Linked IN: http://linkedin.com/in/mickknutson
Twitter: http://twitter.com/mickknutson
---



On Mon, Aug 22, 2011 at 9:11 PM, Willem Jiang <willem.ji...@gmail.com>wrote:

> Hi,
>
> It looks like your route doesn't consume the parameter of the message body
> from the camel-cxf consumer, and the CXF HolderOutInterceptor complains
> about it.
>
> You may need to set the response message in the MappingProcessor or add
> another processor after the wrieTap(INPUT_TAP).
>
>
> On 8/23/11 1:35 AM, Mick Knutson wrote:
>
>> I am trying to modify the cxf example in the camel source to write the
>> contents of the incoming CXF request object to a file:
>>
>>     public static final String INPUT_TAP = "seda:tap";
>> public static final String WRITE_TO_FILE = "direct:writeToFile";
>>     public static final String PROCESSED_FILE_DIR = "file:target/reports";
>> public static final String PROCESSED_FILE_NAME = "processed-${in.header."+
>> SESSION_ID +"}.txt";
>>
>>         // populate the message queue with some messages
>>         from(SOAP_ENDPOINT_URI)
>>             .process(new MappingProcessor(new BookStoreImpl(false)))
>>             .wireTap(INPUT_TAP)
>>         ;
>>         from(WRITE_TO_FILE).routeId("**WRITE_TO_FILE")
>>                 .log("-->WRITE_TO_FILE")
>>                 .setHeader(Exchange.FILE_NAME,
>> constant(PROCESSED_FILE_NAME))
>>                 .to(PROCESSED_FILE_DIR)
>>         ;
>>         from(INPUT_TAP).routeId("**INPUT_TAP")
>>                 .log("-->INPUT_TAP")
>>                 .multicast()
>>                 .to(WRITE_TO_FILE)
>>         ;
>>
>>
>> I keep getting this error:
>>
>> [                qtp25163668-15] HolderOutInterceptor           ERROR The
>> message content list of the in message and out message are same, CXF can't
>> set the holder object into the message content list of the out message.
>>
>> and no files are written
>>
>> I have spent the entire day trying to get this simple example to work and
>> feel I have not made any progress. I really would appreciate some
>> assistance
>> with this.
>>
>>
>>
>> ---
>> Thank You…
>>
>> Mick Knutson, President
>>
>> BASE Logic, Inc.
>> Enterprise Architecture, Design, Mentoring&  Agile Consulting
>> p. (855) BASE-LOGIC: (227-3564-42)
>> p. (478) BASE-LOGIC (227-3564-42)
>> f. (855) BASE-LOGIC: (227-3564-42)
>>
>> Website: http://www.baselogic.com
>> Blog: http://www.baselogic.com/blog/
>> Linked IN: 
>> http://linkedin.com/in/**mickknutson<http://linkedin.com/in/mickknutson>
>> Twitter: http://twitter.com/mickknutson
>> ---
>>
>>
>
> --
> Willem
> ------------------------------**----
> FuseSource
> Web: http://www.fusesource.com
> Blog:    
> http://willemjiang.blogspot.**com<http://willemjiang.blogspot.com>(English)
>         http://jnn.javaeye.com (Chinese)
> Twitter: willemjiang
> Weibo: willemjiang
>

Reply via email to