gpt4 book ai didi

java - ActiveMQ 和 ActiveMQ 浏览器无法连接

转载 作者:行者123 更新时间:2023-12-02 11:34:43 24 4
gpt4 key购买 nike

我知道这个问题已经被问过很多次了,我也关注了很多对话,但我运气不佳。 ActiveMQ Browser 和 ActiveMQ 无法连接。

所以我再次在这里询问我在本地拥有的完整信息。

环境信息:

  1. JDK 1.8
  2. Windows 10
  3. ActiveMQ 5.15.3
  4. ActiveMQ 浏览器 2.5.2.8

ActiveMQ 配置

    <managementContext>
<managementContext createConnector="false" />
</managementContext>

ActiveMQ bat 文件设置 ACTIVEMQ_SUNJMX_START=-Dcom.sun.management.jmxremote.port=1616 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=%ACTIVEMQ_CONF%/jmx.password -Dcom. sun.management.jmxremote.access.file=%ACTIVEMQ_CONF%/jmx.access

ActiveMQ 浏览器连接配置

服务:jmx:rmi:///jndi/rmi://E105756:1616/jmxrmi角色:管理员密码:activemq

异常

无法启动 QBrowserV2无法连接到 ActiveMQ JMX 服务器。

请确保 JMX 服务 URL 和/或用户、密码的输入值正确。

输入JMX URL:service:jmx:rmi:///jndi/rmi://E105756:1616/jmxrmi

注意事项:我已经尝试过以下选项选项 1:使用 createConnector = "true"选项 2:使用 rmi 端口 1098

尝试从 ActiveMQ 浏览器连接时仍然遇到异常

请帮忙

恩吉亚

最佳答案

经过谷歌搜索,终于 ActiveMQ 和 ActiveMQ 浏览器很高兴地在一起了。

这是我的所有配置

<强>1。 activemq.xml

<broker xmlns="http://activemq.apache.org/schema/core" brokerName="localhost" dataDirectory="${activemq.data}" useJmx="true">

<managementContext>
<managementContext createConnector="true" rmiServerPort="1098" connectorPort="1099"/>
</managementContext>

<强>2。 activemq.bat

set ACTIVEMQ_SUNJMX_START=-Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=%ACTIVEMQ_CONF%/jmx.password -Dcom.sun.management.jmxremote.access.file=%ACTIVEMQ_CONF%/jmx.access

<强>3。 ActiveMQ 5.15.3启动日志

C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin>activemq start Java Runtime: Oracle Corporation 1.8.0_101 C:\Program Files\Java\jdk1.8.0_101\jre Heap sizes: current=1005056k free=994570k max=1005056k JVM args: -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.password.file=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\conf/jmx.password -Dcom.sun.management.jmxremote.access.file=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\conf/jmx.access -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\conf\login.config -Dactivemq.classpath=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\conf;C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin../conf;C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin../conf; -Dactivemq.home=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin.. -Dactivemq.base=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin.. -Dactivemq.conf=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\conf -Dactivemq.data=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\data -Djava.io.tmpdir=C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\data\tmp Extensions classpath:
[C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\lib,C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\lib\camel,C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\lib\optional,C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\lib\web,C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\lib\extra] ACTIVEMQ_HOME: C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin.. ACTIVEMQ_BASE: C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin.. ACTIVEMQ_CONF: C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\conf ACTIVEMQ_DATA: C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\data Loading message broker from: xbean:activemq.xml INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@1554909b: startup date [Fri Mar 02 11:03:24 CST 2018]; root of context hierarchy INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\data\kahadb] INFO | KahaDB is version 6 INFO | JMX consoles can connect to service:jmx:rmi://localhost:1098/jndi/rmi://localhost:1099/jmxrmi INFO | PListStore:[C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\data\localhost\tmp_storage] started INFO | Apache ActiveMQ 5.15.3 (localhost, ID:E105756-56074-1520010210044-0:1) is starting INFO | Listening for connections at: tcp://E105756:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector openwire started INFO | Listening for connections at: amqp://E105756:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector amqp started INFO | Listening for connections at: stomp://E105756:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector stomp started INFO | Listening for connections at: mqtt://E105756:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector mqtt started WARN | ServletContext@o.e.j.s.ServletContextHandler@4241e0f4{/,null,STARTING} has uncovered http methods for path: / INFO | Listening for connections at ws://E105756:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO | Connector ws started INFO | Apache ActiveMQ 5.15.3 (localhost, ID:E105756-56074-1520010210044-0:1) started INFO | For help or more information please see: http://activemq.apache.org INFO | No Spring WebApplicationInitializer types detected on classpath INFO | ActiveMQ WebConsole available at http://0.0.0.0:8161/ INFO | ActiveMQ Jolokia REST API available at http://0.0.0.0:8161/api/jolokia/ INFO | Initializing Spring FrameworkServlet 'dispatcher' INFO | No Spring WebApplicationInitializer types detected on classpath INFO | jolokia-agent: Using policy access restrictor classpath:/jolokia-access.xml

<强>4。 ActiveMQ Broswer版本2.5.2.8

<强>5。下载https://mvnrepository.com/artifact/org.apache.activemq/activemq-web/5.15.3并复制到ActiveMQ Broswer安装文件夹。

<强>6。下载http://central.maven.org/maven2/org/apache/activemq/activemq-all/5.15.3/activemq-all-5.15.3.jar并复制到ActiveMQ Broswer安装文件夹。

7.更改run_activemq_browser.bat

start "ActiveMQBrowser" javaw -Xms128m -Xmx512m -splash:cube.png -cp .\QBrowserV2_Neo.jar;.\activemq-web-5.15.3.jar;.\activemq-all-5.15.3.jar;.\jide-oss-2.6.2.jar;.\imq.jar;.\jms.jar;.\imqadmin_ja.jar;.\imqadmin.jar;.\imqutil_ja.jar;.\imqutil.jar;.\imqjmx.jar;.\imqjmx_ja.jar com.qbrowser.ActiveMQBrowser

<强>8。从 ActiveMQ 浏览器查看连接配置JMX URL: 服务:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmiJMX 角色:管理员JMX密码:activemq

关于java - ActiveMQ 和 ActiveMQ 浏览器无法连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49034075/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com