The wlw-runtime-config.xml file allows you to configure runtime parameters of web resources on a production server.
The wlw-runtime-config.xml file must be placed in the root of the WebLogic Server domain directory in order to impact the configuration of WebLogic Workshop applications deployed within the domain.
You can use the example at the bottom of this topic as a template wlw-runtime-config.xml file.
<wlw-runtime-config>
<wlw-config>
<hostname>
<protocol>
<http-port>
<https-port>
<component-group>
<component>
<service>
<class-name>
<protocol>
The <wlw-runtime-config> element is the root element of the wlw-runtime-config.xml file. All other elements are children of <wlw-runtime-config>.
<wlw-runtime-config>
<wlw-config>
<wlw-runtime-config
xmlns="stringNamespace"
>
none.
Parents: none.
Children: <wlw-config>.
The <wlw-config> element defines name and the context-path for a given deployed application. Include a <wlw-config> element for each deployed application. Child elements configure the application's hostname, transport protocol, etc.
<wlw-runtime-config>
<wlw-config>
<hostname>
<protocol>
<http-port>
<https-port>
<service>
<wlw-config
application-name="stringAppName"
context-path="stringContextPath"
>
<!--
Child elements configure the application's hostname, transport protocol, etc. -->
</wlw-config>
Attribute | Description |
---|---|
application-name |
Required string. Specifies the name of the application. |
context-path | Required string. The context-path attribute
specifies the first part of the URL path, after the hostname. The following
URL shows the location of the context path. http://localhost:7001/WebApp/binaryFlow/BinaryFlowController.jpf |
Parents: <wlw-runtime-config>.
Children: <hostname>, <protocol>, <http-port>, <https-port>, <service>.
Specifies the name of the machine where your web application will be deployed.
<wlw-runtime-config>
<wlw-config>
<hostname>
<hostname> stringHostname </hostname>
Parents: <wlw-config>.
Children: none.
Defines the default exposure protocol for your web application. Unless otherwise specified in the class-specific <protocol> element, web resources within the web application will be exposed on the protocol specified here. Possible values are http or https.
<wlw-runtime-config>
<wlw-config>
<protocol>
<protocol> [ HTTP | HTTPS ] </protocol>
Parents: <wlw-config>.
Children: none.
Specifies which port should be used for http traffic. The range of values is 1 to 65535. If omitted the value is set to 7001.
<wlw-runtime-config>
<wlw-config>
<http-port>
<http-port> portInteger </http-port>
Parents: <wlw-config>.
Children: none.
Specifies which port should be used for https traffic. The range of values is 1 to 65535. If omitted the value is set to 7002.
<wlw-runtime-config>
<wlw-config>
<https-port>
<https-port> portInteger </https-port>
none.
Parents: <wlw-config>.
Children: none.
Specifies the list of components.
<wlw-runtime-config>
<wlw-config>
<component-group>
<component>
<component-group> <!-- <component> elements --> </component-group>
none.
Parents: <wlw-config>.
Children: <component>.
Specifies the list of components.
<wlw-runtime-config>
<wlw-config>
<component-group>
<component>
<component> component </component>
none.
Parents: <component-group> .
Children: none.
Use the <service>, and its children <class-name> and <protocol> elements, to specify the transport protocol for individual web resources in a web application.
<wlw-runtime-config>
<wlw-config>
<service>
<class-name>
<protocol>
<service>
<!--
Child elements specifying a resource and exposure protocol. -->
</service>
Parents: <wlw-config> .
Children: <class-name>, <protocol>.
Specifies the transport protocols of individual web resources. Possible values are the class names of web resources. For example, to specify a web service Foo.jws, use <class-name>Foo</class-name>. Values of the <class-name> element are case sensitive.
<wlw-runtime-config>
<wlw-config>
<service>
<class-name>
<class-name> stringClassName </class-name>
Parents: <service>.
Children: none.
Specifies the exposure protocol for individual web resources. Overrides the application-scoped <protocol> element.
<wlw-runtime-config>
<wlw-config>
<service>
<protocol>
<protocol> [ HTTP | HTTPS ] </protocol>
Parents: <service>.
Children: none.
<?xml version="1.0" encoding="UTF-8"?> <wlw-runtime-config xmlns="http://www.bea.com/2003/03/wlw/config/"> <wlw-config application-name="cluster_client" context-path="/cluster_clusterAsClientWeb"> <hostname>myMachine</hostname> <protocol>http</protocol> <http-port>7120</http-port> </wlw-config> </wlw-runtime-config>