Camel
  1. Camel
  2. CAMEL-5197

Allow the definition of a FileComponent with a FileConfiguration (same as for JMS)

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Future
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      We should be able to configure something like this:

      <bean id="file" class="org.apache.camel.component.file.FileComponent">
      <property name="configuration">
      <bean class="org.apache.camel.component.file.FileConfiguration">
      <property name="autoCreate" value="true" />
      <property name="premove" value="work"/>
      <property name="move" value="done"/>
      </bean>
      </property>
      </bean>

      To ensure a common behaviour and directory structure for file processing and make the endpoint declaration lighter
      (without all the options).

        Activity

        Hide
        Claus Ibsen added a comment -

        Its not often used by ppl to specify a <bean> for endpoints.
        But since file endpoint has many options now, we could consider this as well.

        And for uri you can refer to a file configuration bean, "file:foo?fileConfiguration=#myFileConfig" to reuse shared options.

        Show
        Claus Ibsen added a comment - Its not often used by ppl to specify a <bean> for endpoints. But since file endpoint has many options now, we could consider this as well. And for uri you can refer to a file configuration bean, "file:foo?fileConfiguration=#myFileConfig" to reuse shared options.

          People

          • Assignee:
            Unassigned
            Reporter:
            Manuel EVENO
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development