I've just tried your suggestion but there is no setPattern method on
exchange.  I'm using 1.4.


----- Original message -----
From: "Roman Kalukiewicz" <[EMAIL PROTECTED]>
To: camel-user@activemq.apache.org
Date: Mon, 28 Apr 2008 11:07:34 +0200
Subject: Re: Put to queue and continue processing

2008/4/26 rauwerdink <[EMAIL PROTECTED]>:
>  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

Reply via email to