Friday, 30 September 2016

SOA Composite Deployment using Ant build Script


1.1         Composite Deployment


This process assumes you have installed ant-sca-bulk-deploy-v2.2 into a folder , and have already configured it to suit your local environment. See ant-sca-bulk-deploy Installation Configuration and Usage Guide for more information.

The pre-execution process is:

1.       Start a new windows (or UNIX) terminal session.

2.       Run the setWLSEnv script, which is installed as part of weblogic server, as follows:

a.       On Unix

                                                               i.      . /wlserver_10.3/server/bin/setWLSEnv.sh

eg:

Server Name
Type
version
Command to execute
DEV,TST, UAT,PRD
Physical Box
11.1.1.2
. /u9000/app/oracle/product/fmw/soa/wlserver_10.3/server/bin/setWLSEnv.sh
DEV,TST, UAT,PRD
Virtual Box
11.1.1.6
. /u9000/app/oracle/product/ofm_11.1.1.6/fmw/wlserver_10.3/server/bin/setWLSEnv.sh

 

b.      On Windows

                                                               i.      \wlserver_10.3\server\bin\setWLSEnv.cmd

The deployment process is:

1.       Change the directory to

2.       Execute the deployScaBulk ant target, by either of the following commands:

ant  deployScaBulk

or

ant deployScaBulk –DserverURL= -Duser= -Dpassword=

                                                               i.        Note: the serverURL must be the URL and port of the SOA Managed Server(this must be in the form http://host:port).

3.       If prompted, input the following:

3.1   [input] Please enter  Weblogic server URL (this must be the URL and port of the SOA Managed Server):

3.2   [input] Please enter Weblogic username:

3.3   [input] Please  enter  Weblogic password:

3.4    [input] Enter Subversion username (which is your BCC windows logon username ie: payroll number

3.5   [input] Enter svn tag (or enter key to bypass):

§  Enter the svn tag id as mentioned in TAG ID column in Section 4  COMPOSITES TO BE DEPLOYED table above.

3.6   Password for the SVN user

4.         Confirm the task for the deployment

            [echo] Processing task file: /u9000/soa_soasuite_shared/source/management/ant-sca-bulk-deploy-v2.2/bulk_task_staging//.deploy_sca_task

 

4.1   [input] Proceed? (y, n)

Enter ‘y’ if this the service is intended for deployment

4.2   [Input] Which configplan? (<List of config Plan files>)

Enter the config plan name as mentioned in CONFIG PLAN column under Section 4 COMPOSITES TO BE DEPLOYED table against the TAG ID mentioned in step 3.5 above.

5.       After deployment, review the console output and check for success messages, and/or any error messages.

5.1   A Successful deployment should print [deployComposite]àdeploying composite success.

6.       Enter for recursive deployment or press enter key to bypass recursive subversion prompt, and exit.

6.1   [input] Enter svn tag (or enter key to bypass)

For recursive deployment Enter remaining svn tags mentioned in Section 4 COMPOSITES TO BE DEPLOYED and follow the same steps from 3.5 to 6.1.

No comments:

Post a Comment