Jms Spring集成在出站主题中发布消息
我有一个spring集成管道,它应该将消息发布到ActiveMQ主题。我正在尝试使用以下配置配置de-spring xml文件Jms Spring集成在出站主题中发布消息,jms,spring-integration,Jms,Spring Integration,我有一个spring集成管道,它应该将消息发布到ActiveMQ主题。我正在尝试使用以下配置配置de-spring xml文件 <bean id="myTopic" class="org.apache.activemq.command.ActiveMQTopic"> <constructor-arg value="topicMQ" /> </bean> <si:channel id="myChannel" /> <jms:outbound
<bean id="myTopic" class="org.apache.activemq.command.ActiveMQTopic">
<constructor-arg value="topicMQ" />
</bean>
<si:channel id="myChannel" />
<jms:outbound-channel-adapter id="jmsOut" channel="myChannel" destination="myTopic" />
但该消息并未发布到主题中。您知道如何配置spring集成以将消息发布到JMS主题吗?
我期待你的回答。
非常感谢。
Florin我找到了这个解决方案:
<bean id="myTopic" class="org.apache.activemq.command.ActiveMQTopic">
<constructor-arg value="topicMQ" />
</bean>
<si:channel id="myChannel" />
<jms:outbound-channel-adapter id="jmsOut"
channel="myChannel" destination="myTopic"
pub-sub-domain="true" delivery-persistent="true" time-to-live="600000" />
希望这有帮助 这对我的Spring集成设置不起作用。你能多给点吗?可能是您的连接工厂或JMS模板?