转载:JBOSS相关配置实战总结

本文档主要指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了。
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The JBoss 5 Application Server is a Java Enterprise Edition 5 application server that provides services that most enterprise applications need, such as security, transactionality, persistence, monitoring, resource management, and remote access. JBoss 5 Application Server is compliant with the specification defined by the Java Community Process. JBoss in Action teaches readers how to use the JBoss application server, digging into the things that separate JBoss from other Java EE servers. This book goes deeply into the advanced features and configuration of the server. In particular, it focuses on enterprise-class topics, such as high availability, security, and performance. The book walks you through the JBoss 5 Application Server, from installation and configuration to production deployment. It guides you through configuring the server’s component containers, such as the JBoss Web Server, the EJB3 server, and JBoss Messaging. It also gives you detailed insight into configuring the services, such as security, performance, and clustering. Beyond coverage of the core application server, the book also teaches you how to use some of the “hot” technologies that run on top of the application server, such as JBoss Seam and JBoss Portal. The authors, both seasoned professional experts at developing and administering JBoss, provide meaningful explanations and background on many topics, all tied together with practical, real-world advice from their collective experience. The uniquely comprehensive explanations and the overall wide coverage provided in this book surpass any other content currently available. This book is perfect for developers writing Java EE applications, as well as administrators responsible for maintaining the JBoss Application Server.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值