camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From horyna <phoffic...@centrum.cz>
Subject Exchange property cannot be removed in method call
Date Wed, 14 Jan 2015 08:51:07 GMT
Hi,

using Camel 2.13.2. Problem:
.setProperty("meProperty", "some old value")
.choice()
.when(method(this, "removeMeProperty"))
        		.process(new Processor() {
					
					@Override
					public void process(Exchange exchange) throws Exception {
						Object obj = exchange.getProperty("meProperty");
// !!! meProperty has still old value. She was not removed from
exch.properties. Where is this behavior described?
// I can only set another value (not null) inside removeMeProperty, than obj
contains a set value
					}
				})
----
public boolean removeMeProperty(Exchange exch) {
   exch.setProperty("meProperty", null);
   return true;
}




--
View this message in context: http://camel.465427.n5.nabble.com/Exchange-property-cannot-be-removed-in-method-call-tp5761667.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message