Introduction: Variables

Variables come in many varieties. They are used to control settings and properties relating to the server environment. The three main types of variables that you should understand are environment variables, WebSphere® variables, and custom properties.

Environment variables

Environment variables, also called native environment variables, are not specific to WebSphere Application Server and are defined by other elements, such as UNIX, Language Environment® (LE), or third-party vendors, among others. Some of the UNIX-specific native variables are LIBPATH and STEPLIB. These variables tend to be operating system-specific.

[IBM i][AIX Solaris HP-UX Linux Windows]Environment variables can also be specified as an application server environment entry. To specify an environment variable as an environment entry, in the administrative console, click Servers > Server Types > WebSphere application serversserver_name. Then, under Server Infrastructure, click Java process management > Process definition > Environment entries.

[z/OS]Environment variables can also be specified as a servant custom property. To specify an environment variable as a servant custom property, in the administrative console, click Servers > Server Types > WebSphere application serversserver_name. Then, under Server Infrastructure, click Java process management > Process definition, select either Control, Servant, or Adjunct, and then click Environment entries. This path is also used to set environment variables that control the collection of application server and Web container information in z/OS® System Management Facility (SMF) records.

WebSphere variables

WebSphere variables are name and value pairs that are used to provide settings for any of the string data type attributes contained in one of the XML formatted configuration files that reside in the product repository. After a variable is defined, the value specified for the variable replaces the variable name whenever the variable name is encountered during configuration processing.

WebSphere variables can be used to configure:
  • WebSphere Application Server path names, such as JAVA_HOME, and APP_INSTALL_ROOT
  • A path value for the extendedDocumentRoot JSP or file serving attribute. This capability enables you to add an application to each node in a clustered environment without modifying the ibm-web-ext.xmi file for that application on each node.
    支援的配置 支援的配置: 對於 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
  • Certain cell-wide customization values
  • [z/OS]The location service for the z/OS platform.

To create or modify a WebSphere variable, in the administrative console click Environment > WebSphere variables.

A variable can apply to a cell, a cluster, a node, or a server.

How the variable is set determines its scope. If the variable is set:
  • At the server level, it applies to the entire server.
  • At the node level, it applies to all servers in the node, unless you set the same variable at the server level. In that case, for that server, the setting that is specified at the server level overrides the setting that is specified at the node level.
  • At the cell level, it applies to all nodes in that cell, unless you set the same variable at the node or server level.
    • If you set the same variable at the server level, for that server, the setting that is specified at the server level overrides the setting that is specified at the cell level.
    • If you set the same variable at the node level, for all servers in that node, the setting that is specified at the node level overrides the setting that is specified at the cell level.

Custom properties

Custom properties are property settings meant for a specific functional component. Any configuration element can have a custom property. Common configuration elements are cell, node, server, web container, and transaction service. A limited number of supported custom properties are available and these properties can be set in the administrative console using the custom properties link that is associated with the functional component.

For example, to set web container custom properties, click Servers > Server Types > WebSphere application servers > server_name, and then, in the Container settings section, click Web container > Custom properties

Custom properties set from the web container custom properties page apply to all transports that are associated with that web container; custom properties set from one of the web container transport chain or HTTP transport custom properties pages apply only to that specific HTTP transport chain or HTTP transport. If the same property is set on both the web container page and either a transport chain or HTTP transport page, the settings on the transport chain or HTTP transport page override the settings that are defined for the web container for that specific transport.


指出主題類型的圖示 概念主題



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