Tuesday, June 14, 2016

Oracle SOA BPEL Ant Script for composite svn checkout, weblogic build and deploy

Oracle SOA BPEL Ant Script for composite svn checkout,  weblogic build and deploy

1. Below command is used to checkout the source from svn
call "C:\Program Files\TortoiseSVN\bin\svn.exe"  checkout <SVN Path>  "C:\Oracle\SOA\" --non-interactive --no-auth-cache --username <svn user name> --password <svn password>

2. Below command will build composite jar file from the source code.
In below command, composite name is assume as "SOAComposite"

call C:\sw\apache-ant-1.9.6-bin\apache-ant-1.9.6\bin\ant -f C:\Oracle\Middleware\Oracle_Home\soa\bin\ant-sca-package.xml  -DcompositeDir=C:\Oracle\SOA\SOAComposite\SOA -DcompositeName=SOAComposite -Drevision=1.0  -Dsca.application.home=C:\Oracle\SOA\SOAComposite

3. Below command is used to deploy the jar in weblogic
/apache/ant/apache-ant-1.9.6/bin/ant -f /oracle/products/oracle_home/soa/bin/ant-sca-deploy.xml -v -DserverURL=http://<IP>:<Port> -DsarLocation=<Full Path of Composite Jar file>-Doverwrite=true  -Duser=<Weblogic User Name> -Dpassword=<Weblogic Password>  -DforceDefault=true  -Dpartition=default

You can have all three commands in a shell script or batch files.

Oracle SOA Adaptor Log Diagnostic

Below option provide some clue to diagnose the issue while using the adapters like righnow

1.] Go to your Enterprise Manager console;
2.] On the Target Navigation on the left side of the screen, locate SOA > your soa server;
3.] Right click on the SOA server;
4.] Go to Logs > Log Configuration;
5.] In the Log Configuration page, do a search on Oracle.SOA.adapter;
6.] Expand the first node and locate the rightnow adapter;
7.] In the Oracle Diagnostic Logging Level, select TRACE:32 (FINEST);
8.] Click Apply;
9.] Do a test in your composite to reproduce the issue; and
10.] Immediately upload the Diagnostic Log file of the SOA server located at DOMAIN_NAME/SERVERS/SERVER_NAME/LOGS/*.log;