首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

jboss 照射 url 虚拟目录 设置system property

2012-09-10 
jboss映射 url虚拟目录设置system propertyjboss 4.2.3??在[jboss home]\server\default\deploy\jboss-web

jboss 映射 url 虚拟目录 设置system property

jboss 4.2.3

?

?

在[jboss home]\server\default\deploy\jboss-web.deployer下找到server.xml

?

?

<Host name="localhost"
?????????? autoDeploy="false" deployOnStartup="false" deployXML="false"
?????????? configdocBase="D:/uploadfile" reloadable="true" override="true" crossContext="true"/>

?

另外,若想在tomcat中创建虚拟目录:

在[tomcat home]\conf\Catalina\localhost下创建一个upload.xml,内容为:

?

?

<?xml version="1.0" encoding="UTF-8"?>
<Context
??? docBase="D:/uploadfile"
??? reloadable="true"
??? debug="0">
</Context>

?

?

jboss 设置system property

在[jboss home]\server\default\deploy\properties-service.xml

?

? <mbean code="org.jboss.varia.property.SystemPropertiesService"
??? ?name="jboss:type=Service,name=SystemProperties">
??? <attribute name="Properties">
??? ??? MY_DIR=c:/xxxxxx
??? </attribute>
? </mbean>

热点排行