是否可以设置将消息发送到代理的超时时间。
我想向ActiveMQ代理发送大消息,但我不希望它永久存在,因此我打算在发送消息时设置超时。
您可以在连接到代理时在URI中设置connection.sendTimeout=some ms
connection.sendTimeout=some ms
sendTimeout的官方文件说
这里是文档https://activemq.apache.org/components/cms/configuring
希望这会有所帮助!
祝你好运!