Hi Feel free to create a ticket in JIRA for this improvement. I think adding a header to control this behavior would be an acceptable solution.
On Thu, Mar 11, 2010 at 5:28 PM, Meise, Christoph <christoph.me...@immobilienscout24.de> wrote: > Hi camel riders, > > I'm using camel-jms as consumer from an ActiveMQ broker. What I'd like to do > is the following: > - receive a jms message > - forward to an xslt endpoint > - forward to a custom processor > - send the result of the processor to the incoming message's JMSReplyTo > > In positive cases that works - a valid message is sent. But in negative cases > (i.e. I handled an exception) in which there is no valid reply I'd like to > swallow that reply and not answer to the JMSReplyTo. So far I do not see a > possibility. This is what I checked: > - remove header JMSReplyTo from messages -> does not work since the > ReplyDestination is stored in EndpointMessageListener before processor > execution > - set in- and out-messages on the exchange to null, in which case sendReply > should not be executed -> does not work, since you've made everything > extremely smart to not be null ;-) > - setting disableReplyTo to false is not an option since > EndpointMessageListener is not thread safe > I checked this behaviour with camel-1.6.0 and camel-2.2.0. Is there any > further advice or hint you could give? > > On the other hand I could imagine providing a patch where a header field is > checked after processor.process() which allows me to control the behaviour. > Would that be an option? Issue a feature request? > > Kind Regards, > Christoph Meise > IT Systems&Services, Team SAT > > Immobilien Scout GmbH > Andreasstraße 10 > 10243 Berlin > Fon +49 (0)30 24301-1378 > Fax +49 (0)30 24301-1110 > christoph.me...@immobilienscout24.de > > --------------------------------------------------------------- > Immobilien Scout GmbH > Beirat: Dr. Martin Enderle (Vorsitzender) > Geschäftsführer: Dirk Hoffmann, Marc Stilke (Sprecher) > Handelsgericht: Amtsgericht Charlottenburg, HRB 69108 > Sitz der Gesellschaft: Berlin > --------------------------------------------------------------- > > http://www.immobilienscout24.de > Der Marktführer: Deutschlands größter Immobilienmarkt > > > users@camel.apache.org > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus