camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Kalukiewicz" <roman.kalukiew...@gmail.com>
Subject Re: Put to queue and continue processing
Date Mon, 28 Apr 2008 09:07:34 GMT
2008/4/26 rauwerdink <mike_rauwerdink@yahoo.com>:
>  I ended up creating a processor that did the put to the queue without
>  waiting for a response similar to how the else branch in JmsProducer does it
>  and that got me the behavior I was looking for.

In fact at that moment the simplest solution to do it is:

.process(new Processor() {
    public void process(Exchange exchange) {
        exchange.setPattern(InOnly);
    }
    }).to("jms:inOnlyQueue");

But definitelly +1 for having DSL for different styles of send instead
of to() or (could be simpler but less clear - setPattern() in DSL)

Roman

Mime
View raw message