I found the reason for the error. I was defining topic like this
Code:
<bean id="testTopic" class="org.apache.activemq.command.ActiveMQTopic">
<property name="physicalName" value=">" />
</bean>
<jms:message-driven-channel-adapter connection-factory="jmsFactory" extract-payload="true" message-converter="simpleConverter" destination="testTopic" channel="in" />
I was using > sign , which implies for lisiten to all the messages on all topics. When I changed it to a perticular toipc like
Code:
<bean id="testTopic" class="org.apache.activemq.command.ActiveMQTopic">
<property name="physicalName" value="testing.a" />
</bean>
It givens no error.
So topic > was reason for the issue. Logging issues still remain open for me.
I am defining my config like:
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" />
<bean id="testTopic" class="org.apache.activemq.command.ActiveMQTopic">
<property name="physicalName" value="testing.a" />
</bean>
<jms:message-driven-channel-adapter connection-factory="jmsFactory" extract-payload="false" destination="testTopic" channel="in" />
And my log4j.property file is like :
Code:
log4j.rootLogger=INFO, CA,
#Console Appender
log4j.appender.CA=org.apache.log4j.ConsoleAppender
log4j.appender.CA.layout=org.apache.log4j.PatternLayout
log4j.appender.CA.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
#File Appender
log4j.appender.FA=org.apache.log4j.RollingFileAppender
log4j.appender.FA.File=./logs/JMSMessage.log
log4j.appender.FA.layout=org.apache.log4j.PatternLayout
log4j.appender.FA.layout.ConversionPattern=%d - %m%n
org.springframework.integration.handler.LoggingHandler=INFO,FA
even Then I not able to see any log file generated.