本文档主要指JBOSS4.*版本的,默认例子为window平台下,其他平台做相应调整即可。
1.JBOSS默认内存设置不够时,某些应用程序部署会失败,可以修改如下参数:
修改 %JBOSS_HOME%/bin/run.bat 文件中
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
为:
set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m 。
若还不够相应参数可调大。
2.JBOSS增加其他部署路径设置如下:
修改 %JBOSS_HOME%/jboss-4.0.3/server/default/conf/jboss-service.xml 文件中
<attribute name="URLs">
deploy/
</attribute>
为
<attribute name="URLs">
deploy/,file:/D:/work/myapp/deploy/target/jboss
</attribute>
注:file:/D:/work/myapp/deploy/target/jboss 为新增的部署目录,
大家根据具体情况可相应修改。
3.JBOSS数据源配置:
把数据源文件 myapp-ds.xml 拷贝到%JBOSS_HOME%/server/default/deploy 目录下。
4.JBOSS端口修改:
打开JBOSS目录-->jboss-4.0.3-->server-->default-->deploy-->
jbossweb-tomcat55.sar下的server.xml文件,修改port="80"就可以。
------------------------------------------------------------
port="9000" address="${jboss.bind.address}"
maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
emptySessionPath="true"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"/>
-------------------------------------------------------------
粗体显示就是新的端口号,我把它修改为 9000了。
1.JBOSS默认内存设置不够时,某些应用程序部署会失败,可以修改如下参数:
修改 %JBOSS_HOME%/bin/run.bat 文件中
set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m
为:
set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx1024m -XX:PermSize=128m
-XX:MaxPermSize=256m 。
若还不够相应参数可调大。
2.JBOSS增加其他部署路径设置如下:
修改 %JBOSS_HOME%/jboss-4.0.3/server/default/conf/jboss-service.xml 文件中
<attribute name="URLs">
deploy/
</attribute>
为
<attribute name="URLs">
deploy/,file:/D:/work/myapp/deploy/target/jboss
</attribute>
注:file:/D:/work/myapp/deploy/target/jboss 为新增的部署目录,
大家根据具体情况可相应修改。
3.JBOSS数据源配置:
把数据源文件 myapp-ds.xml 拷贝到%JBOSS_HOME%/server/default/deploy 目录下。
4.JBOSS端口修改:
打开JBOSS目录-->jboss-4.0.3-->server-->default-->deploy-->
jbossweb-tomcat55.sar下的server.xml文件,修改port="80"就可以。
------------------------------------------------------------
port="9000" address="${jboss.bind.address}"
maxThreads="250" strategy="ms" maxHttpHeaderSize="8192"
emptySessionPath="true"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true"/>
-------------------------------------------------------------
粗体显示就是新的端口号,我把它修改为 9000了。