简体   繁体   English

ActiveMQ:在CXF项目中启用Web控制台

[英]ActiveMQ: enable Web Console in a CXF Project

i'm trying to figure out how to startup a web console for my Apache CXF-Maven project. 我试图弄清楚如何为我的Apache CXF-Maven项目启动Web控制台。

It's quite messy cause it's not a standard project, i'm actually implementing the wsn\\services from the cxf-master SVN or GITHUB developed by the Apache CXF Team. 这很混乱,因为它不是一个标准项目,实际上是从Apache CXF团队开发的cxf-master SVN或GITHUB实现wsn \\ services。

I've read that there's also the hawtio console, but is even more complicated... 我读过,还有hawtio控制台,但更加复杂...

I need to some info, some help, to point me to the right direction. 我需要一些信息和帮助,以指示正确的方向。 I'm using wildfly 8.2.0 Final. 我正在使用Wildfly 8.2.0 Final。

thanks 谢谢

Ok, the question could be a bit more clear, but I will assume you have a maven based web application that embeds an ActiveMQ broker. 好的,这个问题可能会更清楚一些,但是我将假设您有一个嵌入了ActiveMQ代理的基于Maven的Web应用程序。 You then want to enable the ActiveMQ web console for that broker. 然后,您要为该代理启用ActiveMQ Web控制台。 Correct? 正确?

First, the Web Console is a stand alone web application that you can deploy in whatever container you want, like Wildfly. 首先,Web控制台是一个独立的Web应用程序,您可以将其部署在所需的任何容器中,例如Wildfly。 You simply have to get the .war (by building activemq-web-console from source or grabbing the .war from maven repo ). 您只需要获取.war(通过从源代码构建activemq-web-console或从maven repo中获取.war )。 Then you need to make that .war point out your ActiveMQ broker using JMS and JMX by setting a few system properties. 然后,您需要通过设置一些系统属性,使.war指出使用JMS和JMX的ActiveMQ代理。

Like this (adjust to your values): 这样(调整您的值):

-Dwebconsole.type=properties
-Dwebconsole.jms.url=tcp://localhost:61616
-Dwebconsole.jmx.url= service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi

That should pretty much be it. 差不多就可以了。 You don't even need the console in the same JVM or machine as your broker. 您甚至不需要与代理在同一JVM或计算机中的控制台。

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

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