[
https://issues.apache.org/activemq/browse/SMXCOMP-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59390#action_59390
]
Jean-Baptiste Onofré commented on SMXCOMP-643:
----------------------------------------------
Revision 945066.
I provided a set of default comparators: file name, size and last modification
date.
The users can use these comparators.
I updated the servicemix-file wiki page with informations about comparator
usage.
> Possibility to proccess files for PollingComponent in sorted/ordered way
> defined by component configutration using Comparator or similiar solution
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SMXCOMP-643
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-643
> Project: ServiceMix Components
> Issue Type: New Feature
> Components: servicemix-file, servicemix-vfs
> Affects Versions: servicemix-file-2008.01, servicemix-file-2009.01
> Environment: sar...@sargis:~> java -version
> java version "1.6.0_15"
> Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
> Java HotSpot(TM) Server VM (build 14.1-b02, mixed mode)
> sar...@sargis:~> uname -a
> Linux sargis 2.6.27.29-0.1-pae #1 SMP 2009-08-15 17:53:59 +0200 i686 i686
> i386 GNU/Linux
> sar...@sargis:~> cat /etc/SuSE-release
> openSUSE 11.1 (i586)
> VERSION = 11.1
> sar...@sargis:~>
> Reporter: Sargis Harutyunyan
> Assignee: Jean-Baptiste Onofré
> Priority: Minor
> Attachments: FillPollerWithComparator.patch,
> VFSFillPollerWithComparator.patch
>
>
> I have following situation, with DB trigger I am creating files with name:
> <some name><systemtimestamp.xml>. I am polling this files and putting in JMS
> queue, but I need to put in ordered way(when files created) to have
> consistence document processing. Its nice to have possibility to tell
> PollingComponent how to order list before starting processing them(can be
> file name, file creation date and etc).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.