« Return to Thread: 2.0 FileConnector question

Re: 2.0 FileConnector question

by Steve Olson :: Rate this Message:

Reply to Author | View in Thread

Sorry, the prior post should have said when I set streaming="false"


Just found the answer - evidently the default on the file connector for the streaming attribute has changed to true.  When I set it to default, my flow that worked under 2.0RC2 starts working again.

I don't know much about streaming, so will explore how to deal with that sometime later.

Steve Olson wrote:
I had a file connextor based flow that worked fine in RC2, although FileConnector itself had a couple bugs related to how it was doing archiving when moveTo is in use, as I was doing.  I saw that those were fixed in RC3 and 2.0.0 gold, so tested my flow on those using the 2.0.0 release code.  The unchanged flow configuration runs under 2.0.0, but when it sees a file, is now throwing the same exception that is in Mule-3055.  Mule-3055 shows it's fixed in RC3 but only applies to an example, so I'm unsure if it is the exact same issue or something similar.

I'm gonna start digging into the cause of this, but if anyone is already familiar with whatever was in 3055, I'd appreciate any tips/info.  Here's my sample config snippits that worked fine in 2.0RC2 but break in 2.0.0 (I've changed some names to generic names and doen other editing). The component class below is expecting a String and has a method that the 2.0RC2 entry point resolver found just fine. But on 2.0.0 code it's almost like my file to string transformer isn't happening or something.

<file:file-to-string-transformer name="FileToString"/>
<file:connector name="fileconn1" autoDelete="false"
createMultipleTransactedReceivers="false"
fileAge="5000" moveToDirectory="${mypath}/Archive"
pollingFrequency="10000" >
        <custom-exception-strategy class="com.ameren.esb.mule.EventServiceExceptionStrategy">
               .. content skipped...
        </custom-exception-strategy>
</file:connector>

<model name="Flow1">
<service name="service1">
    <inbound><inbound-endpoint address="file://${mypath}"
        transformer-refs="FileToString"
    connector-ref="fileconn1">
    </inbound-endpoint>
    </inbound>
    <component>
    <spring-object bean="controller1">
        </spring-object>
    </component>
    <custom-exception-strategy class="com.ameren.esb.mule.EventServiceExceptionStrategy">
               .. content skipped...
    </custom-exception-strategy>
</service>
</model>

Thanks in advance for any help!

 « Return to Thread: 2.0 FileConnector question