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

[jira] [Commented] (CAMEL-5197) Allow the definition of a FileComponent with a FileConfiguration (same as for JMS)

    [ https://issues.apache.org/jira/browse/CAMEL-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13407929#comment-13407929 ] 

Claus Ibsen commented on CAMEL-5197:
------------------------------------

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.

                
> Allow the definition of a FileComponent with a FileConfiguration (same as for JMS)
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-5197
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5197
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Manuel EVENO
>             Fix For: Future
>
>
> 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).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira