Work with server properties files
Use properties files to change server properties.
Determine the changes to make to the server configuration or its configuration objects.
Run: wsadmin -lang jython
Use a properties file to create, modify, or delete a server object and its configuration properties.
Run administrative commands using wsadmin to create or change a properties file for a server, validate the properties, and apply them to the configuration.
Action Procedure create
- Run the createPropertiesFileTemplates command to create a server template.
- Edit the template create sections and set SKIP=false.
- Run the applyConfigProperties command.
modify Follow create and delete steps. delete
- Run the createPropertiesFileTemplates command to create a server template.
- Edit the template delete sections and set SKIP=false.
- Run the deleteConfigProperties command.
Optionally, we can use interactive mode with the commands:
AdminTask.command_name('-interactive')
Tasks
- Run the createPropertiesFileTemplates command to create a server template.
- Open the properties file in an editor.
- To create server properties, edit the template create sections, set SKIP=false, and run the applyConfigProperties command.
Running the applyConfigProperties command applies the properties file to the configuration. In this Jython example, the optional -reportFileName parameter produces a report named report.txt:
AdminTask.applyConfigProperties(['-propertiesFileName myObjectType.props -reportFileName report.txt'])- To delete server properties, edit the template delete sections, set SKIP=false, and run the deleteConfigProperties command.
AdminTask.deleteConfigProperties('[-propertiesFileName myObjectType.props -reportFileName report.txt]')
What to do next
Save the changes to the configuration.
Subtopics
- Work with application server properties files
Use properties files to create or change application server properties and the associated StateManageable instance under a server.- Work with custom service properties files
Use properties files to create or change custom service properties under a server.- Work with dynamic cache properties files
Use properties files to change dynamic cache properties under a server.- Work with end point properties file
Use properties files to change the end points of a server.- Work with EJB container properties files
Use properties files to change EJB container properties and associated stateManagement, cacheSettings and timerSettings attributes under a server.- Work with HTTP transport properties files
Use properties files to create or change HTTP transport properties.- Work with listener port properties files
Use properties files to create or change Message Listener Service listener port properties under a server and associated StateManageable objects.- Work with Object Request Broker properties files
Use properties files to change Object Request Broker (ORB) properties and associated interceptors, plug-ins, properties and thread pool attributes under a server.- Work with PMI service properties files
Use properties files to create or change Performance Monitoring Infrastructure (PMI) service properties under a server.- Work with process definition properties files
Use properties files to change the Java process definition of a server and the associated process execution, logs, monitoring policy, and Java virtual machine (JVM) settings under a server.- Work with SOAP connector properties files
Use properties files to create or change SOAP connector properties.- Modify the errorStreamRedirect attribute of StreamRedirect properties files
Use properties files to change errorStreamRedirect attribute of a server. The errorStreamRedirect attribute is of type StreamRedirect.- Work with thread pool properties files
Use properties files to create or change Message Listener Service thread pool properties under a server.- Work with trace service properties files
Use properties files to create or change trace service properties and the associated trace log under a server.- Work with transaction service properties files
Use properties files to change transaction service properties under a server.- Work with web container properties files
Use properties files to change web container properties and associated stateManagement and threadPool attributes under a server.
Extracting properties files Create server, cluster, application, or authorization group objects using properties files and wsadmin scripting Deleting server, cluster, application, or authorization group objects using properties files Extracting properties files to troubleshoot the environment Manage servers, nodes and cells with scripting PropertiesBasedConfiguration .