Search This Blog

Sunday, October 21, 2012

ANT Deployment in SOA 11g

Path setup for ANT:

I have set the PATH and JAVA_HOME variable as follows. By executing the following Set PATH command, I have just added the ant executable folder path to the existing PATH variable. echo %PATH% command shows the PATH variable after adding the ANT folder.



org.apache.ant_1.7.1 folder is found in the Jdeveloper installation directory. JDev11gR1PS3 is my JDeveloper home directory.
JAVA_HOME directory is my SOA Suite installation jdk directory. SOASuite11gPS3 is my SOA Suite installation home directory.

Package the Deployment (Generate SAR/Jar file for SOA composite)

C:\Middleware\JDev11gR1PS3\jdeveloper\bin folder has the required ant scripts
 (basically xml scripts) needed for soa composite package and deployment.

C:\Middleware\JDev11gR1PS3\MyWork_home\APP_ant =  my composite application home directory
C:\Middleware\JDev11gR1PS3\MyWork_home\APP_ant\Provider = the project home directory for the project called Provider
As you can see above, the sca_Provider_rev1.0.jar file has been generated in C:\Middleware\JDev11gR1PS3\MyWork_home\APP_ant\Provider\deploy directory which will be deployed.

Deployment to SOA 11g Server

The Provider project is being deployed here. First BUILD FAILED because of a syntactical problem in the command. I wrote _Doverwrite instead of -Doverwrite.

 STG is the partition name where the composite is being deployed.

No comments:

Post a Comment