(1) Edit %JBOSS_HOME%\server\default\conf\jboss-service.xml
set "CallByValue" attributes as 'true' in NamingService as below
… … … … … … … … … … … …
<mbean code="org.jboss.naming.NamingService"
name="jboss:service=Naming"
xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
<attribute name="CallByValue">true</attribute>
… … … … … … … … … … … …
(2) Edit %JBOSS_HOME%\server\default\deploy\ear-deployer.xml
set "Isloated" and "CallByValue" attributes as true as below
… … … … … … … … … … … …
<attribute name="Isolated">true</attribute>
<attribute name="CallByValue">true</attribute>
… … … … … … … … … … … …
(3) Edit %JBOSS_HOME%\server\default\deploy\jbossweb-tomcat55.sar\META-INF\jboss-service.xml
set "Java2ClassLoadingCompliance" and "UseJbossWebLoader" attributes as true as below
… … … … … … … … … … … …
<attribute name="Java2ClassLoadingCompliance">true</attribute>
<attribute name="UseJBossWebLoader">true</attribute>
… … … … … … … … … … … …
本文详细介绍了如何通过修改JBoss的配置文件来调整其运行时的行为。主要包括:设置NamingService的CallByValue属性为true;设置ear-deployer的Isolated和CallByValue属性为true;设置jbossweb-tomcat55.sar的Java2ClassLoadingCompliance和UseJBossWebLoader属性为true。
268

被折叠的 条评论
为什么被折叠?



