我知道这个问题在这里已经被问了很多次了,我已经跟踪了很多次谈话,但对我来说没有运气。ActiveMQ浏览器和ActiveMQ不能连接。
所以我在这里再问一遍当地的全部情况。
环境信息:
ActiveMQ Config
<managementContext>
<managementContext createConnector="false" />
</managementContext>ACTIVEMQ_SUNJMX_START=-Dcom.sun.management.jmxremote.port=1616 bat文件集ActiveMQ -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浏览器连接控件
service:jmx:rmi:///jndi/rmi://E105756:1616/jmxrmi角色:管理员密码: activemq
异常
无法启动QBrowserV2,无法连接到ActiveMQ JMX。
请确保JMX服务URL和/或用户的输入值是正确的。
输入JMX : service:jmx:rmi:///jndi/rmi://E105756:1616/jmxrmi
注意:我已经尝试了以下选项1:使用createConnector = "true“选项2:使用rmi端口1098
在尝试从ActiveMQ浏览器连接时,我仍然会遇到异常
请帮帮忙
恩吉亚
发布于 2018-03-02 17:51:58
谷歌搜索后,最终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
设置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启动Java : Oracle 1.8.0_101 C:\Program : 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扩展类路径: 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..C:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..:ACTIVEMQ_BASEC:\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 broker,来自: xbean:activemq.xml INFO /刷新org.apache.activemq.xbean.XBeanBrokerFactory$1@1554909b:启动日期,星期五,02,11:03:24 CST 2018年;使用持久化适配器的上下文层次结构的根信息: KahaDBPersistenceAdapterC:\work\soft\apache-activemq-5.15.3-bin\apache-activemq-5.15.3\bin..\data\kahadb INFO \ KahaDB是版本6,INFO \\ JMX控制台可以连接到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启动了INFO _ Apache ActiveMQ 5.15.3 (本地主机,ID:E 105756-56074-1520010210044-0:1)正在开始信息收集侦听连接的位置: tcp://E105756:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO _启动了WARN ServletContext@o.e.j.s.ServletContextHandler@4241e0f4{/,null,started }已经发现了用于path的http方法:/ INFO AC.26侦听ws://E105756:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600 INFO \ Connector INFO _ Apache ActiveMQ 5.15.3 (localhost,ID:E 105756-56074-1520010210044-0:1)启动信息\x{e76f}有关帮助或更多信息,请参见:http://activemq.apache.org INFO _
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
启动"ActiveMQBrowser“javaw -Xms128m -Xmx512m -splash:cube.png -cp com.qbrowser.ActiveMQBrowser
8.请参见来自service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi浏览器的连接配置 JMX URL: JMX角色: admin密码: ActiveMQ
https://stackoverflow.com/questions/49034075
复制相似问题