Hi Gary,
from logs I see that
1. I'm able "to catch" the message from jmsMessageChannelAdapter --> LINE ... converted JMS Message ...
2. but it seems that the channel messageTypeRouter is not triggered:
Code:
Running my.integration.jms.MyListenerTest
26.apr.2012 13:40:12,016 - (MY LISTENER SERVICE) [INFO ]-[DefaultConfiguringBeanFactoryPostProcessor(120 )] - No bean named 'errorChannel' has been explicitly defined. Therefore, a default PublishSubscribeChannel will be created.
26.apr.2012 13:40:12,031 - (MY LISTENER SERVICE) [INFO ]-[DefaultConfiguringBeanFactoryPostProcessor(146 )] - No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
26.apr.2012 13:40:13,703 - (MY LISTENER SERVICE) [INFO ]-[EventDrivenConsumer (75 )] - Adding {xml:xpath-router:messageTypeRouter} as a subscriber to the 'jmsListenerInChannel' channel
26.apr.2012 13:40:13,703 - (MY LISTENER SERVICE) [INFO ]-[AbstractSubscribableChannel (46 )] - Channel 'jmsListenerInChannel' has 1 subscriber(s).
26.apr.2012 13:40:13,703 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (87 )] - started messageTypeRouter
26.apr.2012 13:40:13,703 - (MY LISTENER SERVICE) [INFO ]-[EventDrivenConsumer (75 )] - Adding {outbound-channel-adapter} as a subscriber to the 'bpListMessageTypeChannel' channel
26.apr.2012 13:40:13,703 - (MY LISTENER SERVICE) [INFO ]-[AbstractSubscribableChannel (46 )] - Channel 'bpListMessageTypeChannel' has 1 subscriber(s).
26.apr.2012 13:40:13,703 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (87 )] - started org.springframework.integration.config.ConsumerEndpointFactoryBean#0
26.apr.2012 13:40:13,703 - (MY LISTENER SERVICE) [INFO ]-[EventDrivenConsumer (75 )] - Adding {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
26.apr.2012 13:40:13,719 - (MY LISTENER SERVICE) [INFO ]-[AbstractSubscribableChannel (46 )] - Channel 'errorChannel' has 1 subscriber(s).
26.apr.2012 13:40:13,719 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (87 )] - started _org.springframework.integration.errorLogger
26.apr.2012 13:40:13,719 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (87 )] - started org.springframework.integration.jms.ChannelPublishingJmsMessageListener$GatewayDelegate@1b88122
26.apr.2012 13:40:14,016 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (87 )] - started jmsMessageChannelAdapter
26.apr.2012 13:40:14,047 - (MY LISTENER SERVICE) [INFO ]-[MyListenerTest (26 )] - Ready to retrieve messages ...
26.apr.2012 13:40:14,156 - (MY LISTENER SERVICE) [DEBUG ]-[ChannelPublishingJmsMessageListener(268 )] - converted JMS Message [TextMessage[ID:<121840.1335444217532.0>, <?xml version="1.0" encodi
ng="...]] to integration Message payload [<?xml version="1.0" encoding="ISO-8859-1"?>
<message>
<header>
<type>Extract_bp</type>
<instituteId>BU.CH</instituteId>
<application>APP</application>
<applicationMessageType>bp_list</applicationMessageType>
<remoteUser>adv</remoteUser>
<version>00.01.00</version>
<properties>
<property>
<name>Triggering Order</name>
<value>123456</value>
</property>
</properties>
</header>
<body>
<bp>
<bp_name>BP_0001</bp_name>
</bp>
</body>
</message>]
26.apr.2012 13:40:19,110 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (103 )] - stopped org.springframework.integration.jms.ChannelPublishingJmsMessageListener$GatewayDelegate@1b88122
26.apr.2012 13:40:19,110 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (103 )] - stopped jmsMessageChannelAdapter
26.apr.2012 13:40:19,110 - (MY LISTENER SERVICE) [INFO ]-[EventDrivenConsumer (75 )] - Removing {xml:xpath-router:messageTypeRouter} as a subscriber to the 'jmsListenerInChannel' channel
26.apr.2012 13:40:19,110 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (103 )] - stopped messageTypeRouter
26.apr.2012 13:40:19,110 - (MY LISTENER SERVICE) [INFO ]-[EventDrivenConsumer (75 )] - Removing {outbound-channel-adapter} as a subscriber to the 'bpListMessageTypeChannel' channel
26.apr.2012 13:40:19,125 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (103 )] - stopped org.springframework.integration.config.ConsumerEndpointFactoryBean#0
26.apr.2012 13:40:19,125 - (MY LISTENER SERVICE) [INFO ]-[EventDrivenConsumer (75 )] - Removing {logging-channel-adapter:_org.springframework.integration.errorLogger} as a subscriber to the 'errorChannel' channel
26.apr.2012 13:40:19,125 - (MY LISTENER SERVICE) [INFO ]-[AbstractEndpoint (103 )] - stopped _org.springframework.integration.errorLogger
Thanks for your help and regards
nuvola