Sorry Guillaume, I make a wrong test.

Defining a disableOutput property on the script component works well !

Here the servicemix.xml I used :

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:sm="http://servicemix.apache.org/config/1.0";
xmlns:test="http://servicemix.org/test/";>
        <!-- Le conteneur JBI -->
        <sm:container id="jbi">
                <!-- property name="useMBeanServer" value="true"/>
                <property name="createMBeanServer" value="true"/>
                <property name="dumpStats" value="true"/>
                <property name="statsInterval" value="10"/ -->
                <sm:activationSpecs>
                                                        
                        <sm:activationSpec componentName="ServiceTest"
service="test:ServiceTest">
                                <sm:component>
                                        <bean 
class="org.apache.servicemix.components.groovy.GroovyComponent">
                                                <property name="disableOutput">
                                                        <value>true</value>
                                                </property>
                                                <property name="scriptText">
                                                        <value>
                                                                <![CDATA[
                                                                        println 
"Hello depuis le service"
                                                ]]>
                                        </value>
                                                </property>
                                        </bean>
                                </sm:component>
                        </sm:activationSpec>
                                                                                
                
                        <sm:activationSpec componentName="filePoller"
destinationService="test:ServiceTest" service="test:filePoller">
                                <sm:component>
                                        <bean 
class="org.apache.servicemix.components.file.FilePoller">
                                                <property name="workManager" 
ref="workManager" /> 
                                                <property name="file" 
value="inbox" /> 
                                                <property name="period" 
value="10000" /> 
                                        </bean>
                                </sm:component>
                        </sm:activationSpec>                            
                        
                </sm:activationSpecs>
        </sm:container>
                
        <!--  the work manager (thread pool) for this container --> 
        <bean id="workManager" 
class="org.jencks.factory.WorkManagerFactoryBean">
                <property name="threadPoolSize" value="30" /> 
        </bean> 
        
</beans>

--
View this message in context: 
http://www.nabble.com/FilePoller-and-InOut-MEP-t1606423.html#a4355711
Sent from the ServiceMix - User forum at Nabble.com.

Reply via email to