Class loading and update detection settings

Use this page to configure use of class loaders by an application.

To view this administrative console page, click Applications > Application Types > WebSphere enterprise applications > application_name > Class loading and update detection.

Attention: 如果應用程式在執行中,變更應用程式設定會使應用程式重新啟動。 在獨立式伺服器上,會在儲存變更之後重新啟動應用程式。 在多重伺服器產品上,會在儲存變更之後重新啟動應用程式,在安裝應用程式的節點上,檔案會同步化。 如果要控制多重伺服器產品上的同步化時機,請在「主控台」喜好設定頁面上取消選取與節點同步變更
支援的配置 支援的配置: 對於 IBM® 延伸和連結檔而言,.xmi 或 .xml 副檔名取決於您是使用 Java EE 5 之前的應用程式或模組,或 Java™ EE 5 或更新版本的應用程式或模組。 IBM 延伸或連結檔稱為 ibm-*-ext.xmi 或 ibm-*-bnd.xmi,其中 * 是延伸或連結檔的類型,例如:app、application、ejb-jar 或 web。 適用的條件如下:
  • 如果應用程式或模組使用第 5 版之前的 Java EE,副檔名必須是 .xmi。
  • 如果應用程式或模組使用 Java EE 5 或更新的版本,副檔名必須是 .xml。 如果 .xmi 檔是隨附在應用程式或模組,則本產品會忽略 .xmi 檔。

不過,即使應用程式含有 Java EE 5 之前的檔案,且所用的副檔名是 .xmi,其中也可以有 Java EE 5 或更新版本的模組。

ibm-webservices-ext.xmiibm-webservices-bnd.xmiibm-webservicesclient-bnd.xmiibm-webservicesclient-ext.xmiibm-portlet-ext.xmi 檔會繼續使用 .xmi 副檔名。

sptcfg

Override class reloading settings for web and EJB modules

Specifies whether to enable class reloading when application files are updated.

Select Override class reloading settings for web and EJB modules to set reloadEnabled to true in the deployment.xml file for the application. If an application's class definition changes, the application server run time stops and starts the application to reload application classes.

Reloading settings in the deployment.xml file override the reloading settings for all web and EJB modules that can be defined in ibm-web-ext.xmi and META-INF/ibm-application-ext.xmi files. The following table shows the reload settings in the deployment.xml file based on the setting of reloadEnabled.

Table 1. JSP and servlet class reloading. The following table shows the reload settings in the deployment.xml file based on the setting of reloadEnabled.
deployment.xml ibm-web-ext.xmi ibm-web-ext.xmi (reloadingEnabled) ibm-web-ext.xmi (jspAttributes name="reloadEnabled" Change in JSP Change in servlet class
reloadEnabled = false reloadInterval set or not true true Translate, recompile, reload loading new class
relaodEnalbed = false   false true Translate, recompile, reload NO loading of new class
reloadEnalbed = false   true false NO translate, recompile, reload Loading new class
           
reloadEnalbed = true reloadInterval > 0 false or true false NO translation or reload of JSP Loading new class at specified interval
reloadEnabled = true   false or true true Translation and reload JSP Loading new class
reloadEnabled = true reloadInterval = 0 false or true false NO translation or reload of JSP NO loading of new class
reloadEnabled = true reloadInterval = 0 false or true true Translation and reload of JSP NO loading of new class
  • reloadEnabled = false in the deployment.xml file means that the properties in the ibm-web-ext.xmi file will be in effect.( whatever is set for reloadingEnabled in the ibm-web-ext.xmi file.
  • reloadEnabled = true in the deployment.xml AND reloadInterval = value of polling interval set to a value greater than 0 by using the administrative console, causes reloading in time interval specified by reloadInterval.
  • reloadEnabled = true in the deployment.xml AND reloadInterval= 0 causes no class reloading.
Note:
  • If you want to ensure that the reloading of any servlet class is disabled no matter what is set in the ibm-web-ext.xmi file, then make sure the reloadInterval in the ibm-web.ext.xmi file is set to 0.
  • If jspAttributes name="reloadEnabled" is NOT present in the ibm-web-ext.xmi file, then the reloadingEnabled value becomes the operative reload action.
Information Value
Data type Boolean
Default false

Polling interval for updated files

Specifies the number of seconds to scan the application's file system for updated files. The default is the value of the reloading interval attribute in the IBM extension (META-INF/ibm-application-ext.xmi) file of the EAR file.

This Polling interval for updated files setting is the same as the Reload interval in seconds field on the application installation and update wizards.

To enable reloading, specify a value greater than zero (for example, 1 to 2147483647). To disable reloading, specify zero (0). The range is from 0 to 2147483647.

The reloading interval attribute takes effect only if class reloading is enabled.

Information Value
Data type Long
Units Seconds
Default 3

Class loader order

Specifies whether the class loader searches in the parent class loader or in the application class loader first to load a class. The standard for development kit class loaders and WebSphere® Application Server class loaders is Classes loaded with parent class loader first. By specifying Classes loaded with local class loader first (parent last), your application can override classes contained in the parent class loader, but this action can potentially result in ClassCastException or LinkageErrors if you have mixed use of overridden classes and non-overridden classes.

The options are Classes loaded with parent class loader first and Classes loaded with local class loader first (parent last). The default is to search in the parent class loader before searching in the application class loader to load a class.

For your application to use the default configuration of Jakarta Commons Logging in WebSphere Application Server, set this application class loader mode to Classes loaded with parent class loader first. For your application to override the default configuration of Jakarta Commons Logging in WebSphere Application Server, your application must provide the configuration in a form supported by Jakarta Commons Logging and this class loader mode must be set to Classes loaded with local class loader first (parent last). Also, to override the default configuration, set the class loader mode for each web module in your application so that the correct logger factory loads.

Information Value
Data type String
Default Classes loaded with parent class loader first

WAR class loader policy

Specifies whether to use a single class loader to load all WAR files of the application or to use a different class loader for each WAR file.

The options are Class loader for each WAR file in application and Single class loader for application. The default is to use a separate class loader to load each WAR file.

Information Value
Data type String
Default Class loader for each WAR file in application

指出主題類型的圖示 參照主題



時間戳記圖示 前次更新: July 9, 2016 11:20
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=urun_rapp_classload
檔名:urun_rapp_classload.html