I think I found the answer. This is what I did
public class CancelSubscriptionRoute extends SpringRouteBuilder {
public static Map<String, BillingAPIException> brmResults = new
HashMap<String, BillingAPIException>();
public void configure() throws Exception {
from(GET_CANCEL_BY_ACCOUNT).id("cancelSubscription")
.setHeader("statusMap", constant(brmResults))
...........
...........
...........
}
Using constant to load a hashmap into a header.
--
View this message in context:
http://camel.465427.n5.nabble.com/Accessing-a-local-declared-hashmap-variable-in-a-route-tp5735553p5735681.html
Sent from the Camel - Users mailing list archive at Nabble.com.