简体   繁体   English

无法发送到Solace JMS队列(功能不匹配:路由器不支持持久性端点管理)

[英]Unable to send to Solace JMS queue (Capability Mismatch: Router does not support durable endpoint management)

I am new to Solace. 我是Solace的新手。 We have an app that looks up a Solace connection factory using JNDI and then sends/consumes messages from various queues. 我们有一个应用程序,该应用程序使用JNDI查找Solace连接工厂,然后从各种队列发送/使用消息。

In one of our environments, we get the following exception. 在我们的一种环境中,我们收到以下异常。

I assume this is because this Solace broker/router is configured differently. 我认为这是因为此Solace代理/路由器的配置不同。 Any pointers on how to fix or troubleshoot the issue appreciated. 任何有关如何解决该问题或解决该问题的指示,请多多关照。

nested exception is com.solacesystems.jms.ConfigurationException: Error creating queue - operation not supported on router (Capability Mismatch: Router does not support durable endpoint management.)
    at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:316) 
    at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:169)
    at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:497) 
    at org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate.send(JmsConfiguration.java:228)
    at org.apache.camel.component.jms.JmsProducer.doSend(JmsProducer.java:431) 
    at org.apache.camel.component.jms.JmsProducer.processInOnly(JmsProducer.java:385) 

In order to enable Guaranteed Messaging you basically have to configure this two steps: 为了启用保证消息传递,您基本上必须配置以下两个步骤:

  1. Modify the User Profile you're using to allow Guaranteed Send and/or Receive. 修改您正在使用的用户个人资料,以允许有保证的发送和/或接收。
  2. Modify the VPN configuration to defin the size of the Message Spool to be used. 修改VPN配置以定义要使用的消息假脱机的大小。

This can be done with the following sample commands on Solace CLI: 这可以通过Solace CLI上的以下示例命令来完成:

solace(configure)# client-profile default 
solace(configure/client-profile)# allow-guaranteed-message-receive
solace(configure/client-profile)# allow-guaranteed-message-send
solace(configure/client-profile)# exit

solace(configure)# client-username default message-vpn default 
solace(configure/client-username)# client-profile default 
solace(configure/client-username)# no shutdown 
solace(configure/client-username)# exit   

solace(configure)# message-spool message-vpn default  
solace(configure/message-spool)# max-spool-usage 60000

If you want more information about Guaranteed messaging and more detailed configuration, please refer to: 如果您需要有关保证消息传递和更多详细配置的更多信息,请参阅:

https://docs.solace.com/Configuring-and-Managing/Configuring-Guaranteed-Msging.htm https://docs.solace.com/Configuring-and-Managing/Configuring-Guaranteed-Msging.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM