JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Use Agile By Default
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile Access more options (Alt+g)
  • Create Issue
  • Mule
  • MULE-4784

Endpoint filters not applied when invokes via the quartz:job-endpoint

  • Agile Board
  • More Actions
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Patch submission Patch submission
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 2.2.1
  • Fix Version/s: 3.0.1, 3.1.0, Bug Backlog
  • Component/s: Transport: Quartz
  • Labels:
    None
  • Environment:

    jdk: 1.6
    jre: java-6-sun-1.6.0.16
    OS: ubuntu 9.0.4

  • User impact:
    Low
  • Configuration:
    Hide

    <?xml version="1.0" encoding="UTF-8"?>
    <mule xmlns="http://www.mulesource.org/schema/mule/core/2.2"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:file="http://www.mulesource.org/schema/mule/file/2.2"
    xmlns:quartz="http://www.mulesource.org/schema/mule/quartz/2.2"
    xsi:schemaLocation="
    http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
    http://www.mulesource.org/schema/mule/file/2.2 http://www.mulesource.org/schema/mule/file/2.2/mule-file.xsd
    http://www.mulesource.org/schema/mule/quartz/2.2 http://www.mulesource.org/schema/mule/quartz/2.2/mule-quartz.xsd
    http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd">

    <context:property-placeholder location="classpath:META-INF/properties/test.properties"/>

    <file:endpoint connector-ref="FileConnector" name="FileSource" path="${source.path}" moveToDirectory="${sent.dir}">
    <file:filename-wildcard-filter pattern="*.txt"/>
    </file:endpoint>

    <file:connector name="FileConnector" />

    <model>

    <service name="Directory Polling Service">

    <description>
    Wake up and check the folder for files
    </description>

    <inbound>
    <quartz:inbound-endpoint jobName="FilePollingJob" cronExpression="${cron-expression}">
    <quartz:endpoint-polling-job>
    <quartz:job-endpoint ref="FileSource"/>
    </quartz:endpoint-polling-job>
    </quartz:inbound-endpoint>
    </inbound>

    <outbound>
    <pass-through-router>
    <file:outbound-endpoint path="${dest.dir}" outputPattern="#[ORIGINALNAME]-processed"/>
    </pass-through-router>
    </outbound>

    </service>

    </model>

    </mule>

    Properties :

    source.path=/home/david/pplusnt/PPDB0003/
    upload.dir=/home/david/ABFFlex/uploadQueue
    upload.dir=/home/david/ABFFlex/uploadQueue
    cron-expression=0/30 * * * * ?

    Show
    <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="http://www.mulesource.org/schema/mule/core/2.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:file="http://www.mulesource.org/schema/mule/file/2.2" xmlns:quartz="http://www.mulesource.org/schema/mule/quartz/2.2" xsi:schemaLocation=" http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.mulesource.org/schema/mule/file/2.2 http://www.mulesource.org/schema/mule/file/2.2/mule-file.xsd http://www.mulesource.org/schema/mule/quartz/2.2 http://www.mulesource.org/schema/mule/quartz/2.2/mule-quartz.xsd http://www.mulesource.org/schema/mule/core/2.2 http://www.mulesource.org/schema/mule/core/2.2/mule.xsd"> <context:property-placeholder location="classpath:META-INF/properties/test.properties"/> <file:endpoint connector-ref="FileConnector" name="FileSource" path="${source.path}" moveToDirectory="${sent.dir}"> <file:filename-wildcard-filter pattern="*.txt"/> </file:endpoint> <file:connector name="FileConnector" /> <model> <service name="Directory Polling Service"> <description> Wake up and check the folder for files </description> <inbound> <quartz:inbound-endpoint jobName="FilePollingJob" cronExpression="${cron-expression}"> <quartz:endpoint-polling-job> <quartz:job-endpoint ref="FileSource"/> </quartz:endpoint-polling-job> </quartz:inbound-endpoint> </inbound> <outbound> <pass-through-router> <file:outbound-endpoint path="${dest.dir}" outputPattern="#[ORIGINALNAME]-processed"/> </pass-through-router> </outbound> </service> </model> </mule> Properties : source.path=/home/david/pplusnt/PPDB0003/ upload.dir=/home/david/ABFFlex/uploadQueue upload.dir=/home/david/ABFFlex/uploadQueue cron-expression=0/30 * * * * ?
  • Similar Issues:
    None

Description

When I attempt to utilize a quartz-endpoint-polling-job to grab files from a file-endpoint, the <file:filename-wildcard-filter> I have configured on the file-endpoint is NOT applied, and ALL of the files in the specified directory are processed including sub-directories

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Java Source File
    EndpointPollingJob.java
    12/Mar/10 10:34 AM
    5 kB
    David Kjerrumgaard

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Transitions
  • Commits
  • Source
  • Builds
No work has yet been logged on this issue.

People

  • Assignee:
    Mike Schilling
    Reporter:
    David Kjerrumgaard
Vote (0)
Watch (0)

Dates

  • Created:
    11/Mar/10 02:45 PM
    Updated:
    20/Dec/10 08:40 AM
    Resolved:
    05/Nov/10 06:09 PM

Agile

  • View on Board
  • Atlassian JIRA (v5.0.7#734-sha1:8ad78a6)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for MuleForge. Try JIRA - bug tracking software for your team.