Thanks for your answer.
You're right to jms role (consumer/provider). I change it but there is
always a problem.
If I replace the timer by a mail poller, all works well.
My problem comes from the timer component : I receive the following error :
ERROR - JmsSpringComponent - Error processing exchange
[EMAIL PROTECTED]
java.lang.NullPointerException
at java.io.Writer.write(Writer.java:126)
at
com.ctc.wstx.sw.BaseNsStreamWriter.doWriteStartTag(BaseNsStreamWriter.java:493)
at
com.ctc.wstx.sw.BaseNsStreamWriter.writeStartElement(BaseNsStreamWriter.java:267)
at
org.apache.servicemix.jbi.jaxp.XMLStreamHelper.writeStartElement(XMLStreamHelper.java:109)
at
org.apache.servicemix.jbi.jaxp.XMLStreamHelper.copy(XMLStreamHelper.java:58)
at
org.apache.servicemix.soap.marshalers.SoapWriter.writeContents(SoapWriter.java:198)
at
org.apache.servicemix.soap.marshalers.SoapWriter.writeSimpleMessage(SoapWriter.java:113)
at
org.apache.servicemix.soap.marshalers.SoapWriter.write(SoapWriter.java:82)
at
org.apache.servicemix.jms.multiplexing.MultiplexingProviderProcessor.process(MultiplexingProviderProcessor.java:177)
at
org.apache.servicemix.common.BaseLifeCycle.processExchange(BaseLifeCycle.java:390)
at
org.apache.servicemix.common.BaseLifeCycle$2.run(BaseLifeCycle.java:247)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
My new xml config file is above.
Do you have an idea of the error origin ?
Pierre NOTEL
Bull R&D
//*******************************************************
<!-- JBI container -->
<sm:container spring:id="jbi" rootDir="./wdir" useMBeanServer="true"
createMBeanServer="true" installationDirPath="./install"
monitorInstallationDirectory="true" dumpStats="true"
statsInterval="10" transactionManager="#transactionManager">
<sm:activationSpecs>
<!-- ####################### My input timer ######################## -->
<sm:activationSpec componentName="myTimer" service="foo:myTimer"
destinationService="drools:myRouter">
<sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.apache.servicemix.components.quartz.QuartzComponent">
<property name="triggers">
<map>
<entry>
<key>
<bean class="org.quartz.SimpleTrigger">
<property name="repeatInterval"
value="5000" />
<property name="repeatCount"
value="-1" />
</bean>
</key>
<bean class="org.quartz.JobDetail">
<property name="name" value="job
name" />
<property name="group" value="job
group" />
<property name="description" value="" />
</bean>
</entry>
</map>
</property>
</bean>
</sm:component>
</sm:activationSpec>
<!-- JMS SENDER - PROVIDER -->
<sm:activationSpec componentName="MyProvider"
service="foo:MyProvider">
<sm:component>
<jms:component>
<jms:endpoints>
<jms:endpoint service="foo:MyProvider"
endpoint="MyProvider"
role="provider"
defaultMep="http://www.w3.org/2004/08/wsdl/in-opt-out"
destinationStyle="topic"
jmsProviderDestinationName="demo.org.servicemix.result"
jndiConnectionFactoryName="connectionFactory"
defaultOperation="" />
</jms:endpoints>
</jms:component>
</sm:component>
</sm:activationSpec>
<!-- JMS POLLER - CONSUMER -->
<sm:activationSpec componentName="MyConsumer"
service="foo:MyConsumer">
<sm:component>
<jms:component>
<jms:endpoints>
<jms:endpoint service="foo:MyConsumer"
endpoint="MyConsumer"
targetService="foo:myScreenOutput"
role="consumer"
defaultMep="http://www.w3.org/2004/08/wsdl/in-opt-out"
destinationStyle="topic"
jmsProviderDestinationName="demo.org.servicemix.result"
jndiConnectionFactoryName="connectionFactory"
defaultOperation="" />
</jms:endpoints>
</jms:component>
</sm:component>
</sm:activationSpec>
<!-- ####################### myScreenOutput ######################## -->
<sm:activationSpec componentName="myScreenOutput"
service="foo:myScreenOutput">
<sm:component>
<bean xmlns="http://xbean.org/schemas/spring/1.0"
class="org.apache.servicemix.components.util.StreamWriterComponent">
</bean>
</sm:component>
</sm:activationSpec>
</sm:activationSpecs>
</sm:container>
</beans>