That doesn't seem to work, get an OUT Message not received timeout.
This did though:
public class InOnlySettingProcessor implements Processor {
/* (non-Javadoc)
* @see org.apache.camel.Processor#process(org.apache.camel.Exchange)
*/
public void process(final Exchange exchange) throws Exception {
((DefaultExchange)exchange).setPattern(ExchangePattern.InOnly);
}
}
----- Original message -----
From: "James Strachan" <[EMAIL PROTECTED]>
To: [email protected]
Date: Mon, 28 Apr 2008 14:58:54 +0100
Subject: Re: Put to queue and continue processing
2008/4/28 Martin Gilday <[EMAIL PROTECTED]>:
> I've just tried your suggestion but there is no setPattern method on
> exchange. I'm using 1.4.
There's a setExchangePattern method on the DefaultEndpoint
implementation. So you should be able to do something like...
"jms:SomeQueue?exchangePattern=InOnly" on the URL I think
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com