Using WLST to Extend a Domain With the Web Services Extension Template

Developing WebLogic Web Services 3-9

3.2.4 Using WLST to Extend a Domain With the Web Services Extension Template

The following provides an example of how to use WLST to extend a domain using the Web services extension template. Specifically, this example demonstrates how to extend a single server domain. It is assumed that you have already created a single server domain. You can add additional servers and clusters to the domain in the location noted in the example script below. After updating the script and executing it against your domain, all resources will be configured for advanced Web service features. Review the comments provided in the sample for more information. For more information about the WLST commands described, see the Oracle WebLogic Scripting Tool. Example 3–1 WLST Script to Extend a Domain With the Web Services Extension Template Read the domain. readDomainsingle_server_domain_dir Apply the template to the domain to configure the servers for advanced Web service features. installDir = install_directorywlserver_10.3 templateLocation = installDir + ’commontemplatesapplicationswls_webservice_jaxws.jar’ addTemplatetemplateLocation Save and close the domain updateDomain closeDomain Read the domain readDomaindomain_dir Optionally create any servers and clusters required in your domain environment. Include create calls here . . . For example: createserver1,Server or createcluster1,Cluster Optionally configure the JMS module as a Uniform Distributed Destination Recommended setDistDestTypeWseeJaxwsJmsModule, UDD Target WseeJaxwsJmsModule to the desired servers and clusters. assignJMSSystemResource, WseeJaxwsJmsModule, Target, server_or_cluster Repeat assign call for other servers and clusters in the environment. Unassign the resource from the Administration Server. unassignJMSSystemResource, WseeJaxwsJmsModule, Target, Administration_Server sys.path.appenddomain_dir Import the wls_webservice_complete_update_utils.py script. This script is added to the domain directory when you extend the domain using the Web services extension template. import wls_webservice_complete_update_utils as update update.doWseeFixupglobals Note: The wls_webservice_complete_update_utils.py script used at the end of this example is added to the domain directory when you extend the domain using the Web services extension template. 3-10 Getting Started With JAX-WS Web Services for Oracle WebLogic Server Save and close the domain updateDomain closeDomain

3.2.5 Updating Resources Added After Extending Your Domain