Guillaume Nodet wrote:
The file is deleted when the ack has been received by the file poller.
Check that the provider send the DONE status.

Cheers,
Guillaume Nodet

On 5/4/06, Mark Swanson <[EMAIL PROTECTED]> wrote:
Hello,

The FilePoller no longer deletes the source file after it has been
processed. This used to work fine in 2.0.2. The logs show the FilePoller
processed the file and sent it to the next ServiceEndpoint, yet the file
is not deleted and the FilePoller sends it again and again.

Any idea?

Ok, what works:
FilePoller -> Trace. The file is deleted and all works well.

What does not work:

FilePoller -> TestMessageExchangeListener -> Trace

The same code for TestMessageExchangeListener works fine in 2.x:

public void onMessageExchange(MessageExchange exchange) throws MessagingException {
    if (exchange.getStatus()!=ExchangeStatus.ACTIVE)
        return;

    done(exchange);
}

Relevant servicemix.xml:

    <sm:activationSpecs>

<!-- Look for files in the inbox directory, send them to the scheduler -->
      <sm:activationSpec
        componentName="filePoller"
        destinationService="my:test"
        service="my:filePoller">
        <sm:component>
          <bean xmlns="http://xbean.org/schemas/spring/1.0";
            class="org.apache.servicemix.components.file.FilePoller">
            <property name="workManager" ref="workManager" />
            <property name="file" value="inbox" />
            <property name="period" value="4000" />
            <property name="filter">
              <ref bean="xmlFileFilterID"/>
            </property>
          </bean>
        </sm:component>
      </sm:activationSpec>

      <!-- test -->
      <sm:activationSpec
        componentName="test"
        destinationService="my:trace"
        service="my:test">
        <sm:component>
          <bean xmlns="http://xbean.org/schemas/spring/1.0";
            class="TestMessageExchangeListener">
            <property name="factory">
              <ref bean="schedulerFactoryBean"/>
            </property>
          </bean>
        </sm:component>
      </sm:activationSpec>


Are there additional requirements in 3.0 to set the DONE status?

Thank you.

--
Free replacement for Exchange and Outlook (Contacts and Calendar)
http://www.ScheduleWorld.com/tg/
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb

Reply via email to