This discussion is archived
7 Replies Latest reply: Nov 27, 2012 1:27 PM by 948568 RSS

Need sample ALSB project migration to OSB 11g environment

948568 Newbie
Currently Being Moderated
Hi

I'm looking for sample ALSB project migration to OSB 11g environment and as well as steps to automate deployment of OSB 11g projects by using WLST

Can some one please help me out in regards to the same

Thanks
Ram.S
  • 1. Re: Need sample ALSB project migration to OSB 11g environment
    Pierluigi Vernetto Pro
    Currently Being Moderated
    this post http://biemond.blogspot.ch/2010/07/osb-11g-ant-deployment-scripts.html is the de-facto reference for OSB automated build

    sorry I am not able to help on the ALSB to OSB 11 migration
  • 2. Re: Need sample ALSB project migration to OSB 11g environment
    948568 Newbie
    Currently Being Moderated
    Thanks.

    I'm also looking for a sample ALSB project to be migrated to OSB11g environment. In this regarded wanted to know the steps involved

    Also is it possible to integrate OSB development/deployment to Maven. If so can some one please provide the details

    Thanks
    Ram.S

    Edited by: user13438388 on Nov 26, 2012 4:47 PM
  • 3. Re: Need sample ALSB project migration to OSB 11g environment
    Pierluigi Vernetto Pro
    Currently Being Moderated
    Gurus Anuj and Eric have their say on Maven-OSB here

    OSB and Maven (a few links are there)

    I have never experimented myself, I am a bit allergic to Maven - I simply hate XML POMs.
  • 4. Re: Need sample ALSB project migration to OSB 11g environment
    948568 Newbie
    Currently Being Moderated
    Thanks for the responses for my queries

    I'm stuck at a point where the intention is to export sbconfig.jar from OSB oepe work space to a local directory

    Is there a way which can be achieved by using ant/export.py

    Kindly clarify

    Thanks
    Ram.S

    Edited by: user13438388 on Nov 26, 2012 4:47 PM
  • 5. Re: Need sample ALSB project migration to OSB 11g environment
    Pierluigi Vernetto Pro
    Currently Being Moderated
    Master Biemond published such script here https://github.com/biemond/soa_tools/tree/master/ant_osb_ps5, in Oracle terminology the "export" is called "exportFromWorkspace".

    Unfortunately you need to use some Eclipse Java classes in your build, and they are REALLY poorly written, often it fails without any explanation. I personally had a really hard time with them. It takes a lot of patience - good luck.
  • 6. Re: Need sample ALSB project migration to OSB 11g environment
    948568 Newbie
    Currently Being Moderated
    Please find the build.xml

    <?xml version="1.0" encoding="windows-1252" ?>
    <project name="ConfigExport">

    <property file="./build.properties"/>

    <property name="metadata.dir" value="${workspace.dir}/.metadata"/>

    <property name="domain.export.script" value="export.py" />
    <property name="domain.import.script" value="import.py" />

    <path id="library.osb">
    <fileset dir="${osb.home}/modules">
    <include name="com.bea.common.configfwk_1.6.0.0.jar"/>
    <include name="com.bea.core.xml.xmlbeans_2.2.0.0_2-5-1.jar"/>
    </fileset>
    <fileset dir="${weblogic.home}/server/lib">
    <include name="weblogic.jar"/>
    </fileset>
    <fileset dir="${osb.home}/lib">
    <include name="alsb.jar"/>
    </fileset>
    </path>

    <taskdef name="wlst"
    classpathref="library.osb"
    classname="weblogic.ant.taskdefs.management.WLSTTask"/>


    <target name="exportFromOSB">
    <wlst fileName="${domain.export.script}" debug="true" failOnError="false" classpathref="library.osb"
    arguments="${wls.username} ${wls.password} ${wls.server} ${export.project} ${export.jar} ${export.customFile}">
    <script>
    adminUser=sys.argv[1]
    adminPassword=sys.argv[2]
    adminUrl=sys.argv[3]

    exportJar = sys.argv[5]
    customFile = sys.argv[6]
    passphrase = "osb"
    project = sys.argv[4]

    connect(adminUser,adminPassword,adminUrl)
    domainRuntime()
    </script>
    </wlst>
    </target>

    <target name="importToOSB">
    <wlst fileName="${domain.import.script}" debug="true" failOnError="false" classpathref="library.osb"
    arguments="${wls.username} ${wls.password} ${wls.server} ${import.project} ${import.jar} ${import.customFile}">
    <script>
    adminUser=sys.argv[1]
    adminPassword=sys.argv[2]
    adminUrl=sys.argv[3]

    passphrase = "osb"

    project=sys.argv[4]
    importJar=sys.argv[5]
    customFile=sys.argv[6]

    connect(adminUser,adminPassword,adminUrl)
    domainRuntime()
    </script>
    </wlst>
    </target>



    <target name="exportFromWorkspace">
    <!--delete failonerror="false" includeemptydirs="true"
    dir="${metadata.dir}"/-->
    <java dir="${osb.home}/lib" classpathref="library.osb"
    jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar"
    fork="true" failonerror="true" maxmemory="768m">
    <jvmarg line="-XX:MaxPermSize=256m"/>
    <arg line="-data ${workspace.dir}"/>
    <arg line="-application com.bea.alsb.core.ConfigExport"/>
    <arg line="-configProject ${config.project}"/>
    <arg line="-configJar ${config.jar}"/>
    <arg line="-configSubProjects ${config.subprojects}"/>
    <arg line="-includeDependencies ${config.includeDependencies}"/>
    <sysproperty key="weblogic.home" value="${weblogic.home}"/>
    <sysproperty key="osb.home" value="${osb.home}"/>
    <sysproperty key="osgi.bundlefile.limit" value="500"/>
    <sysproperty key="harvester.home" value="${osb.home}/harvester"/>
    <sysproperty key="osgi.nl" value="en_US"/>
    <sysproperty key="sun.lang.ClassLoader.allowArraySyntax" value="true"/>
    <sysproperty key="osgi.bundlefile.limit" value="750"/>
    <sysproperty key="middleware.home" value="${fmw.home}"/>
    </java>
    </target>


    </project>


    With the target:importToOSB,I was able to successfully import into OSB11g environment

    but with target:exportFromOSB or exportFromWorkspace I'm unable to export from OSB11g environment

    to my local directory

    So my intention is to get the OSB11g exported into my local directory

    Can you please help me out in getting this resolved

    Thanks
    RS
  • 7. Re: Need sample ALSB project migration to OSB 11g environment
    948568 Newbie
    Currently Being Moderated
    Also please find build.properties as below:

    fmw.home=C:/Users/vxvm/oracleosb/Middleware

    #eclipse.home=${fmw.home}/oepe_11.1.1.8.0

    weblogic.home=${fmw.home}/wlserver_10.3
    osb.home=${fmw.home}/Oracle_OSB1


    wls.username = weblogic
    wls.password = welcome1
    wls.server = t3://localhost:7001

    # properties for workspace export
    config.project="OSB Configuration"

    config.jar=C:/Users/vxvm/Desktop/pgeosb/export/pge.jar
    config.includeDependencies=true

    workspace.dir=${basedir}/source
    #workspace.dir=C:/Users/vxvm/osbeclipseworkspace

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points