Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-1425

Add the properties for camel context

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-M1, 1.6.1
    • camel-spring
    • None

    Description

      If we want to configure the some camel internal component such as CachedOutputStream from camel context, we can use a map of properties to do this kind of work.
      With Java code
      Map<String, String> properties = new HashMap<String, String>();
      properties.put(CachedOutputStream.THRESHOLD, "1000");
      camelContext..setProperties(properties);

      With Spring configuration
      <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
      <properties>
      <property key="the key of properties" value="the value as string"/>
      </properties>
      ...
      <camelContext>

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: