activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Syl.P" <sylvain.parcol...@multitoll.fr>
Subject One file generate several messages when pooling a directory
Date Mon, 18 Jan 2010 10:05:40 GMT

Hi, i have configured activeMQ to pool a directory and then put any file in a
queue, i have modified the file activemq.xml with the following settings : 

<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
		<route>
			<from
uri="file:C:/IN?recursive=true&amp;delete=true&amp;preMove=./inprogress/"/>
			<onException>  
				<redeliveryPolicy>  
					<maximumRedeliveries>1</maximumRedeliveries>  
				</redeliveryPolicy>  
			</onException>
			<to uri="activemq:fromXMLFile"/>
		</route>
</camelContext>

It works fine, all the files which are generated in this directory are
queued in "fromXMLFile". However, when i look activeMQ console interface, it
says that there are 39 Messages Enqueued while only one file has been copied
in the directory. Why doeas it display so many messages and is there a way
to have only one message in the queue for only one file copied.

Thank you.
-- 
View this message in context: http://old.nabble.com/One-file-generate-several-messages-when-pooling-a-directory-tp27208304p27208304.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message