|
| Problem | Example of using XMLConfig to set command line arguments on the application server. In this example you are setting Secure Association Service (SAS) tracing on the application server. | | | | Solution | This procedure can be used for any command line arguments you want to add to the application server. The following example is used for setting SAS traces.To enable SAS tracing, place the following text in a file called CmdLineUpdate.xml. Then change the node name and application-servername to appropriate names.<?xml version="1.0"?> <!DOCTYPE websphere-sa-config SYSTEM "$server_root$$dsep$bin$dsep$xmlconfig.dtd"> <websphere-sa-config> <node name="pigpen" action="locate"> <application-server name="Default Server" action="update"> <command-line-arguments> <arg>-Dcom.ibm.CORBA.securityDebug=console</arg> <arg>-Dcom.ibm.CORBA.securityTraceLevel=advanced</arg>
</command-line-arguments> </application-server> </node> </websphere-sa-config>
Use XMLConfig to import this file:
XMLConfig -import CmdLineUpdate.xml -adminNodeName pigpen
In order for the command line arguments to take effect, the application server must be stopped and restarted. Place the following text into a new file called stop.xml (and another new file called start.xmlchanging the action=stop to action=start).
<?xml version="1.0"?> <!DOCTYPE websphere-sa-config SYSTEM "$server_root$$dsep$bin$dsep$xmlconfig.dtd"> <websphere-sa-config> <node name="pigpen" action="locate"> <application-server name="Default Server" action="stop"> </application-server> </node> </websphere-sa-config>
Use XMLConfig to import this file and stop the application server:
XMLConfig -import stop.xml -adminNodeName pigpen
Use XMLConfig to import this file to start the application server:
XMLConfig -import start.xml -adminNodeName pigpen | |
| |
| |
|
Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, System Management/Repository Operating system(s): Multi-Platform Software version: 3.5, 3.5.1, 3.5.2, 3.5.3, 3.5.4, 3.5.4.1, 3.5.4.2, 3.5.5, 3.5.6, 3.5.7, 4.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5, 4.0.6, 4.0.7 Software edition: Advanced Edition, Standard Edition 3.x Reference #: 1041560 IBM Group: Software Group Modified date: 2004-03-24
(C) Copyright IBM Corporation 2000, 2004. All Rights Reserved.
|