JMS uri 问题
我是 JMS 的新手。我正在使用 ActiveMQ CPP(C++ 版本),但很可能我的问题与语言无关:
我发现使用不起作用
故障转移:(tcp://NNNN)?timeout=1000
虽然这有效
故障转移://(tcp://NNNN)?timeout=1000
何时发生此更改,为什么?
根据TCP配置,有选项connectionTimeout,但我没有在代码中看到。我错过了什么吗?
连接选项(例如 connnection.closeTimeout),以防 uri 看起来像 failover:://(tc://NNNN?a=b)?x=y应该应用于tcp或故障转移。是否有深入描述这些选项的良好链接?
谢谢
I'm new to JMS. I'm using ActiveMQ CPP (C++ version), but most probably my questions are language agnostic:
I saw that using didn't worked
failover:(tcp://N.N.N.N)?timeout=1000
while this works
failover://(tcp://N.N.N.N)?timeout=1000
When this change occurred and why?
According to TCP configuration, there's option connectionTimeout, but I don't see in a code. Do I miss something?
Connection options (e.g. connnection.closeTimeout) in case uri looks like failover:://(tc://N.N.N.N?a=b)?x=y should be applied to tcp or failover. Is there good link describing these options in depths?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此处的 ActiveMQ-CPP URI 配置参考:
http://activemq.apache.org/cms/configuring.html
有一些区别由于每种语言可用的 SDK,C++、Java 和 .NET 客户端之间的 URI 解析中存在问题。
蒂姆
www.fusesource.com
See the ActiveMQ-CPP URI configuration reference here:
http://activemq.apache.org/cms/configuring.html
There are some differences in the URI parsing between the C++, Java and .NET clients due to the available SDKs of each language.
Tim
www.fusesource.com