Registration of ESB Projects:
Ant comes up with a specialized task for registering the Oracle ESB projects into the SOA server.
1. Extract ESBMetadataMigration.jar from $SOA_Home\Integration\esb\deployment\documentation.zip
2. Modify the following properties in the ESBMetadataMigrationTaskdefs.xml
project name="ESBMetadataMigrationTaskdefs">
property name="commons.httpclient.home" value="#commons-httpclient jar location"/>
property name="jaxb.v2.0.2.home" value="#jaxb jar location"/>
property name="soa.suite.home" value="#Oracle_SOA_Home"/>
property name="esb.home" value="#ESBMetadataMigration.jar location"/>
!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Custom ant task definitions, to enable import. - This section should be treated as immutable upon installation. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
dirname property="imported.basedir" file="${ant.file.ESBMetadataMigrationTaskdefs}"/>
taskdef resource="oracle/tip/esb/client/anttasks/antlib.xml">
classpath>
pathelement location="${esb.home}/ESBMetadataMigration.jar"/>
pathelement location="${commons.httpclient.home}/commons-httpclient-3.0.1.jar"/>
pathelement location="${soa.suite.home}/lib/xmlparserv2.jar"/>
pathelement location="${soa.suite.home}/integration/esb/lib/commons-logging.jar"/>
pathelement location="${soa.suite.home}/integration/esb/lib/commons-codec-1.3.jar"/>
pathelement location="${soa.suite.home}/integration/esb/lib/oraesb.jar"/>
pathelement location="${jaxb.v2.0.2.home}/lib/activation.jar"/>
pathelement location="${jaxb.v2.0.2.home}/lib/jaxb-api.jar"/>
pathelement location="${jaxb.v2.0.2.home}/lib/jsr173_1.0_api.jar"/>
pathelement location="${jaxb.v2.0.2.home}/lib/jaxb-impl.jar"/>
/classpath>
/taskdef>
/project>
3. Import the following config files in your ant build script
import file="${bpel.home}/utilities/ant-orabpel.xml"/>
import file="${ESBMetaDataLoc}/ESBMetadataMigrationTaskdefs.xml"/>
4. Final step to register the ESB projects;
target name="ESB_1" description="run ESB_1">
echo>Registering ESB_1...
deployESBProjects esbMetadataServerHostname="${http.hostname}"
esbMetadataServerPort="${http.port}"
userName="${admin.user}"
password="${admin.password}">
esbProject directory="${ESB_1.file.path}"/>
/deployESBProjects>
/target>
P.S.: Please note that i have deleted "<" symbol in the beginning of every xml statement, since i was unable to display the xml content as a post. So, add "<" to beginning of each xml line.
Technical Posts on latest Middleware Platform comprising affordable and amazing solutions for Oracle SOA Suite,BPEL,BAM,BPA,ESB,WebMethods, JDeveloper,IBM WebSphere,Oracle BEA Weblogic Server,Websphere. Official Blog : http://blogs.oracle.com/anirudhpucha/ Disclaimer:The views expressed on this blog are my own and do not necessarily reflect the views of any Organisations owning these products. There are some interesting posts of others that were copied with prior permission/sometimes not.
Tuesday, March 31, 2009
CUSTOM ANT SCRIPTS FOR DEPLOYING ESB PROJECTS
Subscribe to:
Post Comments (Atom)
2 comments:
It was rather interesting for me to read this article. Thank you for it. I like such topics and anything that is connected to them. I definitely want to read a bit more on that blog soon.
Nice post you got here. It would be great to read a bit more about that matter.
By the way look at the design I've made myself Overnight escort
Post a Comment