![]() ![]() ![]() ![]() ![]() ![]() |
You can use WLST to retrieve and update an application’s deployment plan. When using WLST to update an application’s deployment plan, you define variable definitions and variable assignments. A variable definition identifies what descriptor entity is to be changed; a variable assignment associates a new value with the variable.
The following procedure describes how to use WLST in interactive mode. For information about using WLST in script or embedded mode, see Using the WebLogic Scripting Tool.
To update a deployment plan using WLST in interactive mode, perform the following steps:
Note: | The example code provided in the following procedure demonstrates how to update a configure Web Services Reliable Messaging. For more information, see “Using Web Services Reliable Messaging” in Programming Advanced Features of WebLogic Web Services Using JAX-RPC. |
For more information, see “Create a deployment plan” in the Administration Console Online Help.
prompt> java weblogic.WLST
For more information, see Using the WebLogic Scripting Tool.
connect("weblogic", "weblogic", "localhost:7001")
plan=loadApplication("c:/myApps/ReliableServiceEar/examples/webservices/reliable/ReliableHelloWorldImpl.war", "c:/myApps/ReliableServiceEar/Plan.xml")
The loadApplication
command returns a WLSTPlan
object that you can access to make changes to the deployment plan. For more information about the WLSTPlan
object, see WLSTPlan Object.
plan.showVariables()
Name Value
----- -----
ReliabilityConfig_AcknowledgementInterval P0DT0.5S
Wsdl_Exposed true
plan.showVariableAssignments()
examples/webservices/reliable/ReliableHelloWorldImpl.war
|
WEB-INF/weblogic-webservices.xml
|
Wsdl_Exposed
examples/webservices/reliable/ReliableHelloWorldImpl.war
|
WEB-INF/weblogic-webservices.xml
|
ReliabilityConfig_AcknowledgementInterval |
createVariable()
method to specify the variable name and value. For example:v=plan.createVariable("ReliabilityConfig_BufferRetryCount", "3")
createVariableAssignment()
method to specify the name of the variable, the application to which is applies, and the corresponding deployment descriptor. For example:va=plan.createVariableAssignment("ReliabilityConfig_BufferRetryCount", "ReliableServiceEar", "META-INF/weblogic-application.xml")
va.setXpath("/weblogic-webservices/webservice-description/[webservice-description-name="examples.webservices.reliable.ReliableHelloWorldImpl"]/port-component/[port-component-name="ReliableHelloWorldServicePort"]/reliability-config/buffer-retry-count")
plan.save()
![]() ![]() ![]() |