camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From siddhesh <>
Subject Issue with ProducerTemplate send. Null value going as String.
Date Mon, 14 Dec 2015 06:09:18 GMT
Hi All,

I calling send method of ProducerTemplate with my endpoint as follows


Later I decided to construct the endpoint uri separately as string as this
template was getting used  many times


constructEndpoint(Strign index, String value) {
+ value;

Things starts breaking when property.errorCode is null.  Method
constructEndpoint returns endpoint string with attributeValu as null which
gets evaluated by producerTemplate as String null i.e. "null"

Any idea how to overcome this situation  ?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message