<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http:
xmlns:xsi="http:
xmlns:spring="http:
xmlns:file="http:
xmlns:vm="http:
xmlns:test="http:
xsi:schemaLocation="
http: http: http: http: http:
<vm:connector name="vmQueue" queueEvents="true">
</vm:connector>
<file:connector streaming="false" name="fileConnector" pollingFrequency="1000000"
autoDelete="false" fileAge="1000">
</file:connector>
<file:endpoint path="./src/test/resources/virusfiles" name="get"
connector-ref="fileConnector" />
<custom-filter
class="org.mule.routing.filters.antivirus.AntiVirusFilter"
name="clamFilter">
<spring:property name="provider" ref="tcpscanner_clam"></spring:property>
<spring:property name="properties">
<spring:props>
<spring:prop key="host">localhost</spring:prop>
<spring:prop key="port">9998</spring:prop>
</spring:props>
</spring:property>
</custom-filter>
<model name="ESTest">
<service name="FolderTO">
<inbound>
<file:inbound-endpoint ref="get">
<!-- <file:file-to-byte-array-transformer /> -->
</file:inbound-endpoint>
</inbound>
<bridge-component />
<outbound>
<filtering-router>
<vm:outbound-endpoint address="vm: />
<filter ref="clamFilter" />
</filtering-router>
</outbound>
</service>
</model>
<spring:bean id="tcpscanner_clam"
class="org.mule.routing.filters.antivirus.spi.clamav.ClamAVTCPScannerProvider">
</spring:bean>
</mule>