I am new to spring intergration, I am trying to build a sample application which listen to JMS messages using message-driven-channel-adapter and sent them to logging channel to print it to log.
My config looks like this :

Code:
<si:channel id="in">
	<si:interceptors>
	 <si:wire-tap channel="logger" />
	</si:interceptors>
</si:channel>

<si:logging-channel-adapter id="logger"  expression="payload.toString()" level="DEBUG" />

<jms:message-driven-channel-adapter   connection-factory="jmsFactory"  extract-payload="false"   destination="testTopic" channel="in" />
When running this code I am getting below exception :
Code:
org.springframework.integration.MessageDeliveryException: Dispatcher has no subscribers for channel in.
	at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:82)
	at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157)
	at org.springframework.integration.core.MessagingTemplate.doSend(MessagingTemplate.java:288)
	at org.springframework.integration.core.MessagingTemplate.send(MessagingTemplate.java:149)
So can sombody please help in resolving this, also I want to print messages recieved (from jms adapter) to a log file, so what configuration are required for that ? as I am not able to find any configuration through which I can use logging channel adapter with log4j.