camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Meise, Christoph" <>
Subject org.apache.camel.component.jms.EndpointMessageListener always replies to not wanted
Date Thu, 11 Mar 2010 16:28:35 GMT
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
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

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
Der Marktführer: Deutschlands größter Immobilienmarkt

View raw message