activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Davies <rajdav...@gmail.com>
Subject Re: [Mule 1.4.4] FileConnector: how to stop large or binary files?
Date Wed, 14 May 2008 14:54:25 GMT

On 14 May 2008, at 15:33, Benoitx wrote:

>
> Hi All,
>
> We are using the FileConnector mechanism to pick up files from a given
> directory.
>
> is there an easy way to STOP certain files from being picked up?  
> Typically:
> 1/ binary files (yes or no)
> 2/ files where size > x bytes
>
> We seemed to think that "binary" was a property of  the  
> FileConnector but
> that does not seem to work.
>
> Looking at the FileConnector code, there is:
>    public static final String PROPERTY_FILE_SIZE = "fileSize";
>
> but it does not seem to be used at all.
>
> 	<connector name="file_connector"
> className="org.mule.providers.file.FileConnector">
> 		<properties>
> 			<property name="moveToDirectory" value="${submitted_dir}" /><!-- no
> file:// prefix ! -->
> 			<property name="moveToPattern"
> value="${ORIGINALNAME}.${DATE:yyyy-MM-dd_HH-mm-ss-SSS}" />
> 			<property name="binary" value="false" />
> 			<property name="autoDelete" value="false" />
> 			<property name="fileAge" value="${file_age_ms}" />
> 		</properties>
> 	</connector>
>
> is there a solution "out-of-the-box" for Mule 1.4.4 ?
>
> Many thanks
>
> Benoit
> http://www.Appendium.com
>
> -----
> Thanks & Regards,
>
> Benoit
>
> http://www.Appendium.com   http://objectlab.blogspot.com
>
> -- 
> View this message in context: http://www.nabble.com/-Mule-1.4.4--FileConnector%3A-how-to-stop-large-or-binary-files--tp17232544s2354p17232544.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Wrong list - you'd be better asking for support from the Mule lists -  
or better yet - use http://activemq.apache.org/camel/file.html




cheers,

Rob

http://open.iona.com/products/enterprise-activemq
http://rajdavies.blogspot.com/





Mime
View raw message