We can deploy a SOA process using the following ways.
sca_validatePlan("/u01/temp1/myValRep.xml", "/u01/myplan1.xml", sar="/u01/ProivderABCS_rev1.0.jar");
- JDeveloper by connecting to corresponding Weblogic Server
- ANT Script
- WLST Script (Web Logic Scripting Tool)
- Weblogic Enterprise manager by accessing the SAR file
- Hudson tool
WLST Script :
It is command-line scripting interface which can be used to manage and monitor Weblogic server instances and domains. We can execute WLST commands one by one on the command line, it will display the corresponding results. Otherwise we can club all the commands into a python (.py) file and execute it programatically i.e we can use loops,conditions etc.
We can use this interface in two different modes as mentioned below.
- Online Mode : Connected to a running weblogic administration server
- Offline Mode : Not connecting to administration server
To connect to WLST interface online we need to execute the below steps.
- Goto : cd /u01/Middleware/oracle_soa1/common/bin/
- Execute command : ./wlst.sh
- It will connect to the WLST interface in offline mode.
- Execute command : connect('username','password',"t3://host:7001");
- Now it will connected to the Weblogic admin server with Online mode.
Export MDS :
exportMetadata(application='soa-infra',server='soa_server1',toLocation='/u01/temp1/MDSData', docs='/apps/**');
Import MDS :
importMetadata(application='soa-infra', server='soa_server1',fromLocation='/var/tmp/MDSData',docs="/apps/**");
Plan File Generate :
sca_generatePlan("/var/tmp/MMpoRequest.xml",composite="/var/RequestorABCS/composite.xml",overwrite=true);
Plan File Validate :
sca_validatePlan("/u01/temp1/myValRep.xml", "/u01/myplan1.xml",composite="/u01/RequestorABCS/composite.xml");sca_validatePlan("/u01/temp1/myValRep.xml", "/u01/myplan1.xml", sar="/u01/ProivderABCS_rev1.0.jar");
Deploy Composite :
sca_deployComposite("http://wlsHost:8001","/u01/RequestorABCS/deploy/RequestorABCS_rev1.0.jar",overwrite=true, user="weblogic",password="admin123",forceDefault=true,partition="default",configplan="/u01/myplan1.xml");
sca_deployComposite("http://wlsHost:8001","/u01/RequestorABCS/deploy/RequestorABCS_rev1.0.jar",overwrite=true, user="weblogic",password="admin123",forceDefault=true,partition="default",configplan="/u01/myplan1.xml");
Undeploy Composite :
sca_undeployComposite("http://wlsHost:8001","VarSensor", "1.0", partition='POC');
We can use a configplan file at the time of deploying a SOA process which depends upon another wsdl deployed on a WLS server and we try to deploy it on a different server which not same as the calling wlst resides. The plan file search the location of the wsdl location and replaces with the current deploying wls server location. We can create a single plan file for multiple soa processes.
Deploy Multiple SOA processes using WLST:
Choose those projects which are you need to bundle from the application projects.
We can deploy the SOA bundle file directly on application server or to the SOA Bundle file(It will create a corresponding JAR file on the Application->Deploy folder. This jar file can be deploy to a remote server using WLST script.).
Hello.
ReplyDeleteI need the Schemas that jdeveloper use for validate configplans. Only need validate the structure.
Where i can the Schema file?
Regards.