jms-message-bus sample not working

微笑、不失礼 提交于 2019-12-11 14:47:26

问题


I have tried to follow the steps in https://github.com/SpringOne2GX-2014/Spring-XD-Internals/tree/master/jms-message-bus to point to an external Active MQ.

But when i start the XD with ./xd-singlenode --transport jms I'm getting an error, i think JMS is not getting recognized provided in the Wiki, what am i missing? Below is the error

`2015-02-11 16:29:42,708 1.1.0.RELEASE  INFO main` 
server.SingleNodeApplication - Started SingleNodeApplication in    
0.963 seconds (JVM running for 1.313)
'jms' is not a valid value for option --transport. 
Possible values are [rabbit, redis, kafka, local]

回答1:


This repo was written for a talk we presented at SpringOne2GX 2014, in September and has not been updated to work with Spring XD 1.1. It should work with the 1.0.4 release but it is intended as a simple prototype to illustrate how Spring XD supports pluggable transports (as of Sep 2014 anyway).

In Spring XD 1.1, the message bus implementations are not statically included in the classpath and the jars must be installed in $XD_INSTALL_DIR/xd/lib/messagebus/. Note that the --transport option value is validated by searching this directory which is why you are seeing the error. The configured transport's MessageBus implementation is loaded "on the fly" when the server starts. It's possible that this will work as described if you install the jar under xd/lib/messagebus/jms but I haven't tried it. Additionally, this prototype starts an embedded activemq broker and will need some modification to point to an external Active MQ broker, as suggested in your question.



来源:https://stackoverflow.com/questions/28465913/jms-message-bus-sample-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!