前言
整理這個官方翻譯的系列,原因是網(wǎng)上大部分的 tomcat 版本比較舊,此版本為 v11 最新的版本。
開源項目
從零手寫實現(xiàn) tomcat minicat 別稱【嗅虎】心有猛虎,輕嗅薔薇。
系列文章
web server apache tomcat11-01-官方文檔入門介紹
web server apache tomcat11-02-setup 啟動
web server apache tomcat11-03-deploy 如何部署
web server apache tomcat11-04-manager 如何管理?
web server apache tomcat11-06-Host Manager App -- Text Interface
web server apache tomcat11-07-Realm Configuration
web server apache tomcat11-08-JNDI Resources
web server apache tomcat11-09-JNDI Datasource
web server apache tomcat11-10-Class Loader
...
介紹
Tomcat 使用 JMX MBeans 技術(shù)來實現(xiàn)對 Tomcat 的可管理性。
Catalina 的 JMX MBeans 描述在每個包中的 mbeans-descriptors.xml 文件中。
您需要為自定義組件添加 MBean 描述,以避免出現(xiàn) "ManagedBean is not found" 異常。
添加 MBean 描述
您也可以在與其描述的類文件相同的包中的 mbeans-descriptors.xml 文件中為自定義組件添加 MBean 描述。
mbeans-descriptors.xml 的允許語法由 DTD 文件定義。文章來源:http://www.zghlxwxcb.cn/news/detail-856281.html
自定義 LDAP 認(rèn)證 Realm 的條目可能如下所示:文章來源地址http://www.zghlxwxcb.cn/news/detail-856281.html
<mbean name="LDAPRealm"
className="org.apache.catalina.mbeans.ClassNameMBean"
description="Custom LDAPRealm"
domain="Catalina"
group="Realm"
type="com.myfirm.mypackage.LDAPRealm">
<attribute name="className"
description="Fully qualified class name of the managed object"
type="java.lang.String"
writeable="false"/>
<attribute name="debug"
description="The debugging detail level for this component"
type="int"/>
.
.
.
</mbean>
到了這里,關(guān)于web server apache tomcat11-16-mbean的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!