【发布时间】:2017-07-29 15:02:22
【问题描述】:
我在一台服务器上运行了两个 Spring Boot 应用程序。两者都使用嵌入式 ActiveMQ JMS。我想为每个应用程序有单独的 JMS 实例。我怎样才能为他们每个人设置端口?有没有像spring.activemq.port 这样的属性?
当我运行第二个应用程序时,我收到以下预期错误:
Failed to start JMX connector Cannot bind to URL [rmi://localhost:1099/jmxrmi]: javax.naming.NameAlreadyBoundException: jmxrmi [Root exception is java.rmi.AlreadyBoundException: jmxrmi]. Will restart management to re-create JMX connector, trying to remedy this issue.
【问题讨论】:
标签: java spring spring-boot activemq spring-jms