You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/04/06 14:03:09 UTC

[jira] Created: (CAMEL-2617) CamelContext - Properties - Add a CamelContextPropertiesDefinition so we have type safe options

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
            Priority: Minor


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.


[jira] Updated: (CAMEL-2617) CamelContext - Properties - Add a CamelContextPropertiesDefinition so we have type safe options

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-2617:
-------------------------------

    Fix Version/s: 2.4.0

> 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
>            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.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (CAMEL-2617) CamelContext - Properties - Add a CamelContextPropertiesDefinition so we have type safe options

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Resolved: (CAMEL-2617) CamelContext - Properties - Add a CamelContextPropertiesDefinition so we have type safe options

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-2617.
---------------------------------

    Resolution: Working as Designed

> 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.


[jira] Assigned: (CAMEL-2617) CamelContext - Properties - Add a CamelContextPropertiesDefinition so we have type safe options

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-2617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-2617:
-----------------------------------

    Assignee: Willem Jiang

> 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.