Quantcast

Query on content enricher in camel

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Query on content enricher in camel

Gnanaguru S

Hi

I just saw the content enricher documentation in camel. I want to whether my scenario can be achieved here.

1. From endpoint A i am getting some message to a queue, I want to replace the whole message using this content enricher and send it to another endpoint.


Regards
Guru
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Query on content enricher in camel

Taariq Levack
I don't see why not, just don't tell the processor that it's a content
enricher or it might have an identity crisis :)

from("direct:a").process(new Processor() {
public void process(Exchange exchange) {
    Message in = exchange.getIn(); in.setBody("Hello World, I have a hot
new body!"); }
 }).to("direct:b");

Taariq


On Mon, Nov 28, 2011 at 8:58 AM, Gnanaguru S <
[hidden email]> wrote:

>
> Hi
>
> I just saw the content enricher documentation in camel. I want to whether
> my
> scenario can be achieved here.
>
> 1. From endpoint A i am getting some message to a queue, I want to replace
> the whole message using this content enricher and send it to another
> endpoint.
>
>
> Regards
> Guru
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Query-on-content-enricher-in-camel-tp5027954p5027954.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Query on content enricher in camel

Taariq Levack
BTW, there are other ways to route a different message to a different
queue, I'm sure you'll get the hang of it, else ask when you get stuck.

On Mon, Nov 28, 2011 at 12:11 PM, Taariq Levack <[hidden email]> wrote:

> I don't see why not, just don't tell the processor that it's a content
> enricher or it might have an identity crisis :)
>
> from("direct:a").process(new Processor() {
> public void process(Exchange exchange) {
>     Message in = exchange.getIn(); in.setBody("Hello World, I have a hot
> new body!"); }
>  }).to("direct:b");
>
> Taariq
>
>
>
> On Mon, Nov 28, 2011 at 8:58 AM, Gnanaguru S <
> [hidden email]> wrote:
>
>>
>> Hi
>>
>> I just saw the content enricher documentation in camel. I want to whether
>> my
>> scenario can be achieved here.
>>
>> 1. From endpoint A i am getting some message to a queue, I want to replace
>> the whole message using this content enricher and send it to another
>> endpoint.
>>
>>
>> Regards
>> Guru
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Query-on-content-enricher-in-camel-tp5027954p5027954.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>
>
Loading...