You should create a SAR file and deploy it.
SOA SUITE:
with WLST:
some interesting WLST commands here
Here C:\Oracle1\Middleware\Oracle_SOA1\bin\ant-t2p-worklist.xml the MDS migration tool.
with ANT:
C:\Oracle1\Middleware\jdeveloper\bin\ant-sca-compile.xml
here the entire documentation on how to build and deploy using the Ant files.
OSB:
with WLST:
http://www.oracle.com/technology/sample_code/products/osb/index.html
also here another version of same script
http://www.insemble.com/oracleservicebus-deployment.html
before you run it:
c:\Oracle1\Middleware\wlserver_10.3\server\bin\setWLSEnv.cmd
set CLASSPATH=%CLASSPATH%;C:\Oracle1\Middleware\Oracle_OSB1\lib\sb-kernel-api.jar;C:\Oracle1\Middleware\Oracle_OSB1\modules\com.bea.common.configfwk_1.3.0.0.jar;C:\Oracle1\Middleware\Oracle_OSB1\lib\sb-kernel-impl.jar
java weblogic.WLST import.py import.properties
Examples:
how to compile your SCA with Ant:
cd C:\JDeveloper\mywork\myproject
ant -f C:\Oracle1\Middleware\jdeveloper\bin\ant-sca-compile.xml -Dscac.input=C:\JDeveloper\mywork\myproject\composite.xml
this will produce out.err and out.xml in your default TEMP directory
(eg C:\Users\pierre\AppData\Local\Temp)
then package into a jar file:
ant -f C:\Oracle1\Middleware\jdeveloper\bin\ant-sca-package.xml -DcompositeDir=C:\JDeveloper\mywork\myproject -DcompositeName=myproject -Drevision
=1.0
then deploy:
ant -f C:\Oracle1\Middleware\jdeveloper\bin\ant-sca-deploy.xml -DserverURL=http://localhost:7001 -DsarLocation=C:\JDeveloper\mywork\myproject\deploy\sca_myproject_rev1.0.jar -Duser=weblogic
Sunday, November 28, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment