是否可以将 JBoss 5.x 配置为使用位于 JBOSS_HOME 外部的 jboss-log4j.xml?如果是 - 应该改变什么?
问问题
876 次
1 回答
3
该conf/jboss-service.xml
文件包含对以下内容的引用jboss-log4j.xml
:
<mbean code="org.jboss.logging.Log4jService"
name="jboss.system:type=Log4jService,service=Logging"
xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml">
<attribute name="ConfigurationURL">resource:jboss-log4j.xml</attribute>
我不确定究竟是什么resource:jboss-log4j.xml
意思,但ConfigurationURL
听起来你可以传入一个file://
-style URL,指定一个外部 log4j 文件。
于 2010-02-18T21:28:06.403 回答