分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 运营维护

ActiveMQ之web管理console

发布时间:2023-09-06 01:59责任编辑:苏小强关键词:暂无标签
activeMQ有一个web管理端。
启动方式:./bin/activemq

关于jetty.xml、jetty-realm.properties、web.xml

jetty.xml配置IP和port默认是8161.

<bean id="jettyPort" class="org.apache.activemq.web.WebConsolePort" init-method="start"> ?????<property name="host" value="0.0.0.0"/> ?????<property name="port" value="8162"/></bean>

jetty.xml不同角色的访问权限。

 ???<bean id="securityLoginService" class="org.eclipse.jetty.security.HashLoginService"> ???????????<property name="name" value="ActiveMQRealm" /> ???????????<property name="config" value="${activemq.conf}/jetty-realm.properties" /> ???</bean> ???<bean id="securityConstraint" class="org.eclipse.jetty.util.security.Constraint"> ???????????<property name="name" value="BASIC" /> ???????????<property name="roles" value="user,admin" /> ???????????<property name="authenticate" value="true" /> ???</bean> ???<bean id="adminSecurityConstraint" class="org.eclipse.jetty.util.security.Constraint"> ???????????<property name="name" value="BASIC" /> ???????????<property name="roles" value="admin" /> ???????????<property name="authenticate" value="true" /> ???</bean> ???<bean id="securityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> ???????????<property name="constraint" ref="securityConstraint" /> ???????????<property name="pathSpec" value="/api/*,/admin/*,*.jsp" /> ???</bean> ???<bean id="adminSecurityConstraintMapping" class="org.eclipse.jetty.security.ConstraintMapping"> ???????????<property name="constraint" ref="adminSecurityConstraint" /> ???????????<property name="pathSpec" value="*.action" /> ???</bean>

jetty-realm.properties配置用户名和密码以及角色分类

admin: admin123, adminuser: user123, user

控制界面

ActiveMQ之web管理console

原文地址:http://blog.51cto.com/881206524/2128918

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved