Sealyu

          --- 博客已遷移至: http://www.sealyu.com/blog

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks

          See ClassLoadingConfiguration.

          Available option in deploy/jbossweb-tomcat.sar/META-INF/jboss-service.xml

          or deploy/jboss-web.deployer/META-INF/jboss-service.xml

          This configuration options toggles usage of separate classloaders for web modules. The JBoss unified classloader holds all the classes from multiple web applications in one big classloader and may cause unwanted interference.

          Example

          Imagine web modules "sales.war" and "stock.war", both containing some version of "utility.jar". In case "sales.war" uses version 1.0 and "stock.war" requires version 2.0, turning off the unified web loader is the safest solution. If you don't, the first loaded library will have priority, and remains in the classloader till the reference count drops to zero.

          The disadvantage of using isolated classloaders: either you need to duplicate the same library across multiple web modules, or add it to the classpath of your server instance (default: lib/). The instance libraries are defaults, they can be overridden when the web module contains it's own custom versions.

          The configuration file contains a small comment about isolation of JSP files as well, to separate two JSP files with the same name from two different web modules. In JBoss 4.0.5, using non-precompiled JSP pages, this seems to work fine, even with the JBoss unified web loader.

          posted on 2009-02-24 10:25 seal 閱讀(1331) 評論(0)  編輯  收藏 所屬分類: web服務器
          主站蜘蛛池模板: 太康县| 合江县| 阳朔县| 门头沟区| 孟津县| 磐安县| 洮南市| 铜梁县| 黄冈市| 中宁县| 吉隆县| 永年县| 胶南市| 盐池县| 珲春市| 长丰县| 上栗县| 平度市| 永吉县| 龙南县| 临朐县| 池州市| 邳州市| 赤城县| 当雄县| 佛山市| 青铜峡市| 德格县| 南乐县| 徐汇区| 屏东县| 苏尼特左旗| 二连浩特市| 宁德市| 施甸县| 容城县| 肇州县| 北海市| 澄迈县| 双城市| 普安县|