WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Configuring WebSphere variables

This topic describes how to create a WebSphere Application Server variable.

Before you begin

You can define a WebSphere Application Server variable to provide a parameter for some values in the system. After you define the name and value for a variable, the value is used in place of the variable name. Variables most often specify file paths. However, some system components also support the use of variables.

WebSphere variables are used for:
  • Configuring WebSphere Application Server path names, such as JAVA_HOME, and APP_INSTALL_ROOT.
  • Configuring certain cell-wide or cluster-wide customization values.

The scope of a variable can be cell-wide, cluster-wide, node-wide, or applicable to only one server process.

Why and when to perform this task

Define variables on the Environment > WebSphere Variables console page.

Define the scope to apply a variable cell-wide, cluster-wide, node-wide or to only one server process. A variable resolves to its new value when used in a component that supports the use of variables.

Steps for this task

  1. Click Environment > WebSphere Variables in the administrative console to define a new variable.
  2. Specify the scope of the variable. Declare the new variable for the Cell, Cluster, Node or Server and click Apply.

    The variable exists at the level you specify. Define a variable at multiple levels to use multiple values. The more granular definition overrides the higher level setting.

    For instance, if you specify the same variable on a node and a server, the server setting overrides the node setting. Similarly, a node level setting overrides a cluster or cell setting.

    Scoping variables is particularly important when testing data source objects. Variable scoping can cause a data source to fail the test connection, but to succeed at run time, or to pass the test connection, but fail at run time.

    See Test connection service for more information.

  3. Click New on the WebSphere Variables page.
  4. Specify a name, a value, and a description on the Variable page. Click OK.
  5. Verify that the variable is displayed in the list of variables. The administrative console does not pick up typing errors. The variable is ignored if it is referred to incorrectly.
  6. Save your configuration.
  7. Stop the server and start the server again to put the variable configuration into effect.



Sub-topics
IBM Toolbox for Java JDBC driver
Configure and use the jt400.jar file

Related concepts
Variables

Related reference
Session management custom properties

Related information
HTTP transport custom properties

Task topic    

Terms of Use | Feedback

Last updated: Mar 17, 2005 4:28:29 AM CST
http://publib.boulder.ibm.com/infocenter/ws60help/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tcws_variable.html

© Copyright IBM Corporation 2004, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)