您的位置:首页 > 其它

jboss standalone.xml学习

2014-10-28 17:39 330 查看
jboss中有model的概念

根据其development guide的解释:

A Module is a logical grouping of classes used for class loading and dependency management. JBoss

Enterprise Application Platform 6 identifies two different types of modules, sometimes called static and

dynamic modules.

Static Modules

Static Modules are predefined in the EAP_HOME/m odules/

jboss提供的api都被定义成model,放在这个modules目录下

All the application server provided APIs are provided as static modules, including the Java EE

APIs as well as other APIs such as JBoss Logging.

Dynamic Modules

Dynamic Modules are created and loaded by the application server for each JAR or WAR

deployment

也就是说我们部署的jar包和war包,jboss都加载为module

所有这些module只有需要的时候再加载

standalone.xml可以指定server时需要加载哪些model

并且对每个model都可以定义一个subsystem元素来指定其属性

另外 standalone.xml中也可以定义socket-binding-group元素,指定 端口对应关系。

例如如果我们已经定义了

<http-interface security-realm="ManagementRealm">

<socket-binding http="management-http"/>(绑定management-http)

</http-interface>

那么我们在socket-binding-group中可以具体定义management-http绑定哪个端口

<socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/>

默认的话jboss web console的端口为9990

企业版 jboss是没有jboss jmx console的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: