我在一台服务器上运行两个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.