Sealyu

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

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            618 隨筆 :: 87 文章 :: 225 評論 :: 0 Trackbacks
          <2009年2月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          1234567

          常用鏈接

          留言簿(14)

          隨筆分類

          隨筆檔案

          友情鏈接

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          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 閱讀(1336) 評論(0)  編輯  收藏 所屬分類: web服務器
          主站蜘蛛池模板: 东乌珠穆沁旗| 思茅市| 通山县| 双峰县| 孟津县| 陵水| 临沧市| 湘西| 定结县| 多伦县| 淮南市| 龙口市| 利津县| 修武县| 湘阴县| 三明市| 泉州市| 额济纳旗| 扎赉特旗| 如东县| 桓仁| 淮北市| 镇原县| 公安县| 泾源县| 临高县| 调兵山市| 云安县| 赞皇县| 泰宁县| 绥阳县| 太谷县| 鹤岗市| 中山市| 西和县| 谢通门县| 西贡区| 连南| 黔南| 沙雅县| 沾益县|