Work with end point properties file
Use properties files to change the end points of a server.
Determine the changes to make to your end point configuration.
Start the wsadmin scripting tool. To start wsadmin using the Jython language, run the wsadmin -lang jython command from the bin directory of the server profile.
Use a properties file to modify end point properties.
Run administrative commands using wsadmin to extract a properties file for an end point, validate the properties, and apply them to the configuration.
Action Procedure create Not available modify Edit properties and then run the applyConfigProperties command. delete Not available Optionally, we can use interactive mode with the commands:
AdminTask.command_name('-interactive')
Tasks
- Edit end point properties under a server.
Open an editor on a properties file. Example properties for an EndPoint under a server follow. The example specifies three different host names in the Environment Variables section: myHostName,* and localhost. We can copy the example properties into an editor and modify them as needed for our situation.
# # Header # ResourceType=EndPoint ImplementingResourceType=Server ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName} # # #Properties # SOAP_CONNECTOR_ADDRESS=8888:!{hostName} # integer SIP_DEFAULTHOST_SECURE=5067:!{hostName1} # integer SIP_DEFAULTHOST=5066:!{hostName1} # integer SIB_ENDPOINT_ADDRESS=7283:!{hostName1} # integer WC_defaulthost_secure=9447:!{hostName1} # integer DCS_UNICAST_ADDRESS=9364:!{hostName1} # integer SIB_MQ_ENDPOINT_SECURE_ADDRESS=5582:!{hostName1} # integer WC_adminhost_secure=9052:!{hostName1} # integer CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS=9424:!{hostName} # integer ORB_LISTENER_ADDRESS=0:!{hostName} # integer BOOTSTRAP_ADDRESS=2813:!{hostName} # integer CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS=9423:!{hostName} # integer IPC_CONNECTOR_ADDRESS=9634:!{hostName2} # integer SIB_ENDPOINT_SECURE_ADDRESS=7291:!{hostName1} # integer WC_defaulthost=9084:!{hostName1} # integer SIB_MQ_ENDPOINT_ADDRESS=5562:!{hostName1} # integer SAS_SSL_SERVERAUTH_LISTENER_ADDRESS=9422:!{hostName} # integer WC_adminhost=9069:!{hostName1} # integer # EnvironmentVariablesSection # #Environment Variables hostName2=localhost hostName1=* hostName=myHostName cellName=WASCell06 serverName=myServer nodeName=WASNode04- 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'])
Use the properties file to configure and manage the end point properties.
What to do next
Save the changes to the configuration.
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 PropertiesBasedConfiguration .