camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gilday" <martin.li...@imap.cc>
Subject Re: Put to queue and continue processing
Date Mon, 28 Apr 2008 14:10:05 GMT
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" <james.strachan@gmail.com>
To: camel-user@activemq.apache.org
Date: Mon, 28 Apr 2008 14:58:54 +0100
Subject: Re: Put to queue and continue processing

2008/4/28 Martin Gilday <martin.lists@imap.cc>:
> 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

Mime
View raw message