带有jms接收器的spring-xd jms-message-bus

时间:2015-02-16 22:29:23

标签: spring-jms spring-xd

我尝试创建一个类似于源的接收器模块。更改了配置,因此它将使用jms出站适配器发送到队列。 有没有一种简单的方法可以说 - 因为它已经使用了jms-transport,只需使用相同的传输将输出发送到某个output.queue?

我收到此错误

Caused by: java.io.IOException: Transport scheme NOT recognized: [tcp]
    at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
    at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:181)
    at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:63)
    at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:315)
    ... 61 more
Caused by: java.lang.ClassCastException: org.apache.activemq.transport.tcp.TcpTransportFactory cannot be cast to org.apache.activemq.transport.TransportFactory
    at org.apache.activemq.transport.TransportFactory.findTransportFactory(TransportFactory.java:178)

另见

  

jms-message-bus sample not working,其中包含尝试创建jms消息总线的先前工作

接收器/ jms-out / lib:

activemq-all-5.7.0.jar
activemq-client-5.10.0.jar
geronimo-j2ee-management_1.1_spec-1.0.1.jar
geronimo-jms_1.1_spec-1.1.1.jar
hawtbuf-1.10.jar
spring-integration-jms-4.1.2.RELEASE.jar
spring-jms-4.1.4.RELEASE.jar

下沉/ JMS出/配置:

<import resource="../../../common/jms-activemq-infrastructure-context.xml"/>

<int:channel id="input" />

<int-jms:outbound-channel-adapter id="jmsOut"
    destination-name="xd.bus.output"
    channel="input" 
    connection-factory="jmsConnectionFactory"/>

这些是消息总线中的内容:

activemq-all-5.7.0.jar
jms-message-bus-1.0.0.BUILD-SNAPSHOT.jar
spring-integration-jms-4.0.2.RELEASE.jar
spring-jms-4.0.6.RELEASE.jar
xbean-spring-3.7.jar

0 个答案:

没有答案