[ https://issues.apache.org/activemq/browse/CAMEL-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=60042#action_60042 ]
Willem Jiang commented on CAMEL-2617: ------------------------------------- @Claus, We should not let use to change the CamelContextProperties within the Camel route, as the CamelContext properties can be see across the exchanges, if there are more than one thread which call the route processors, and they are changing the CamelContext properties at the same time, it will cause some trouble. Current Camel provides a more safe way to configure the CamelContextProperties Java DSL {code} new RouteBuilder() { public void configure() { getContext().getProperties().put("MyKey", "myValue"); } } {code} XML DSL {code} <camelContext id="camel1" xmlns="http://camel.apache.org/schema/spring"> <properties> <property key="org.apache.camel.test" value="this is a test first"/> </properties> <template id="producer1"/> </camelContext> {code} > CamelContext - Properties - Add a CamelContextPropertiesDefinition so we have > type safe options > ----------------------------------------------------------------------------------------------- > > Key: CAMEL-2617 > URL: https://issues.apache.org/activemq/browse/CAMEL-2617 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core, camel-spring > Reporter: Claus Ibsen > Assignee: Willem Jiang > Priority: Minor > Fix For: 2.4.0 > > > Currently CamelContext have a {{Properties}} for misc options. > We should introduce a {{CamelContextPropertiesDefinition}} so we have type > safe options in Java DSL and Spring XML. > Then we also have one place to *advert* and document the options we currently > support. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.