简体   繁体   English

如何正确使用ActiveMQ

[英]How to properly use ActiveMQ

I'm new to ActiveMQ and having a hard time getting started. 我是ActiveMQ的新手,开始很难。

I have my broker and truststore set up and I can see the handshake. 我已经设置了经纪人和信任库,并且可以看到握手。
Whenever I deploy the app in Tomcat I log into ActiveMQ console and can also see the other Queues and topics that are configured within the XML file. 每当我在Tomcat中部署应用程序时,我都会登录到ActiveMQ控制台,并且还可以查看XML文件中配置的其他队列和主题。

The queues are configured like this 队列配置如下

<bean id="destination" class="org.apache.activemq.command.ActiveMQTopic">
    <constructor-arg value="my/destinaiton"/>
</bean>

and this bean id is passed into JmsTemplate (org.springframework.jms.core.JmsTemplate) 并将此bean id传递到JmsTemplate(org.springframework.jms.core.JmsTemplate)

I want to just start with creating a queue and passing a string value into this queue and work with the listener later. 我只想开始创建一个队列,然后将字符串值传递到此队列中,然后再与侦听器一起使用。

My question. 我的问题。 I changed the constructor-arg value (my/destinaiton) just to see a change in MQ console and I saw the change my/destinaitonNew. 我更改了builder-arg值(my / destinaiton)只是为了查看MQ控制台中的更改,并且看到了更改my / destinaitonNew。 However, when I change the value back to it's orginal value (my/destinaiton) it stays the same (my/destinaitonNew). 但是,当我将值更改回原始值(my / destinaiton)时,它保持不变(my / destinaitonNew)。

I can restart MQ and even reboot my machine but that value stays the same. 我可以重新启动MQ,甚至重新启动机器,但该值保持不变。 Why is this? 为什么是这样?

Also, if I've configured my queue the same as the others in the app shouldn't I see it in the MQ console? 另外,如果我已将队列配置为与应用程序中的其他队列相同,那么我是否应该在MQ控制台中看到它呢?

我在服务器上使用SSL,并且必须确保MQ bin / env中的代理具有受信任的Tomcat握手。

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

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