Export OSB configuration from eclipse using ant script

I am trying to export an OSB project from eclipse using ant script
I followed the link below http://biemond.blogspot.com/2010/07/osb-11g-ant-deployment-scripts.html
It is using com.bea.alsb.core.ConfigExport to do the export. This export is always set to resource level.
I see it generates a file ExportInfo setting some properties. It has a property that set the export level as below
<imp:property name="projectLevelExport" value="false"/>*
How can I export the project in project level? basically setting projectLevelExport to true?
So that if a file does not exist in the sbconfig.jar file , then while importing the jar to OSB server it will delete the file from the server instead of skipping it?
I appreciate any help
here is the ant script snippet that gets executed to export from eclipse
<target name="exportFromWorkspace">
     <delete failonerror="false" includeemptydirs="true"
dir="${metadata.dir}"/>     
               <!--eclipse.refreshLocal resource="${config.project}" depth="infinite"/-->
<java dir="${eclipse.home}"
jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.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="-exportLevel true"/>
<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"/>
</java>
</target>

yes, I specified the project name to export the whole project.
Here is few lines from my properties file
# properties for workspace export
config.project="OSB Configuration-GW"
config.jar=D:/workspace/osb/scripts/gateway/mycode2/ant_osb/dist/sbconfig.jar
config.subprojects="GatewaySecurity"
config.includeDependencies=true
workspace.dir=D:/workspace/osb/gateway-workspace
But this property does not make it to export at project level ,it export the specified project at resource level.
And while importing this jar to OSB server, if a file is missing it skips the file instead of deleting the file from the OSB server
If I unjar sbconfig.jar file, open ExportInfo file and update the line in bold below to true then it deletes the file from OSB server, if not exist in sbconfig.jar
<imp:property name="exporttime" value="Thu Dec 29 13:57:44 EST 2011"/>
<imp:property name="productname" value="Oracle Service Bus"/>
<imp:property name="productversion" value="11.1.1.4"/>
*<imp:property name="projectLevelExport" value="false"/>*
Here is few lines from Oracle API java doc
http://docs.oracle.com/cd/E13171_01/alsb/docs26/javadoc/com/bea/wli/sb/management/importexport/ALSBImportOperation.Operation.html
public static final ALSBImportOperation.Operation Delete
Indicates that the resource is deleted in the importing domain. This is the default operation when the project is exported in its entirety and the resource exists in the target domain but not in the jar file
public static final ALSBImportOperation.Operation Skip
Indicates that the resource is skipped meaning the resource is not touched in the importing domain. This is the default operation if the jar file was exported at the resource level, and a resource that exists in the target domain, does not exist in the jar file.

Similar Messages

  • Exporting Secured PDF from indesign using apple script

    hi there, this is my first go at scripting,
    basically what i am trying to do is:
    tell indesign to turn on a layer called "proof" in the active document
    then export pdf - set pdf preference to smallest file size, all pages, and secure the file WITH A PASSWORD so that it can be opened but not edited (unless by someone at my agency who knows this password). this easy enough to manually, but im sick of typing out a password everytime i save a proof.
    then save to a specific folder on the desktop, using the already existing filename - so 'myfile.pdf'
    the code below gives me this message "
    error "Can’t make name of PDF export preferences into type Unicode text." number -1700 from name of «class DFpf» to Unicode text
    could someone please help me word this properly? I tried first referring to a pdf preset instead of setting all the values ie set color bitmap etc but i couldnt get the password to work,
    here is what i have so far, written from snippets that other people have tried:
    tell application "Adobe InDesign CS4"
              tell active document
      try
                                  set visible of layer "PROOF" to false
                        end try
      set docName to name
                        set baseName to text item 1 of docName
                        set ASTID to AppleScript's text item delimiters
                        set AppleScript's text item delimiters to "."
                        set AppleScript's text item delimiters to ASTID
              tell PDF export preferences
                        set acrobat compatibility to acrobat 4 --> create a 1.3 pdf
                        set use security to true
                        set disallow changing to true
                        set disallow copying to true
                        set disallow document assembly to true
                        set disallow extraction for accessibility to true
                        set disallow form fill in to true
                        set disallow notes to true
                        set disallow hi res printing to false
                        set color bitmap sampling DPI to 100
                        set grayscale bitmap sampling DPI to 100
                        set monochrome bitmap sampling DPI to 100
      --set image quality
                        set color bitmap quality to minimum
                        set grayscale bitmap quality to minimum
      --set fonts
                        set subset fonts below to 0
      --set security
                        set use security to true
                        set change security password to "editedit"
                        set disallow extraction for accessibility to false
                        set disallow copying to true
                        export format PDF type to "/Users/kimwilson242/Desktop/_PROOFS/" & name & ".pdf" without showing options
              end tell
    end tell

    tell application "Adobe InDesign CS5"
      -- prefs belong to app so use in tell app block
              tell PDF export preferences
                        set acrobat compatibility to acrobat 4 --> create a 1.3 pdf
                        set use security to true
                        set disallow changing to true
                        set disallow copying to true
                        set disallow document assembly to true
                        set disallow extraction for accessibility to true
                        set disallow form fill in to true
                        set disallow notes to true
                        set disallow hi res printing to false
                        set color bitmap sampling DPI to 100
                        set grayscale bitmap sampling DPI to 100
                        set monochrome bitmap sampling DPI to 100
      --set image quality
                        set color bitmap quality to minimum
                        set grayscale bitmap quality to minimum
      --set fonts
                        set subset fonts below to 0
      --set security
                        set use security to true
                        set change security password to "editedit"
                        set disallow extraction for accessibility to false
                        set disallow copying to true
              end tell
      -- now deal with the doc
              tell active document
                        try
                                  set visible of layer "PROOF" to false
                        end try
                        set docName to name
                        set baseName to text item 1 of docName
                        set ASTID to AppleScript's text item delimiters
                        set AppleScript's text item delimiters to "."
                        set AppleScript's text item delimiters to ASTID
      -- use flexible path to user desktop… path strings are HFS (colon delimited)
                        export format PDF type to (path to desktop as text) & "PROOFS:" & name & ".pdf" without showing options
              end tell
    end tell

  • OSB - Deploying a java service on different servers using Ant script

    Hi All,
    My scenario is, I have two installations of OSB(with workshop), one on unix machine and other on windows machine...Now the problem is like, I have one java code exposed as a weblogic service ( this is created in workshop of windows machine), I need to deploy this service on my unix server using ANT script....
    Could any one pls let me know how to do this ( deploying services using Ant on different boxes).....
    Any help is appreciated....
    Thanks & Regards
    Feroz Tasha.

    Use the "targets" option to set the server where you want deploy your app.
    More info in [http://edocs.bea.com/wls/docs81/deployment/tools.html#1000477]

  • How to deploy jar file in WLS using ant script

    Hi,
    Im trying to deploy a jar file in weblogic 10.3 using ant script and am running into the below error.
    +[wldeploy] weblogic.management.DeploymentException: [J2EE:160177]The application at "/u01//RSJBObjects.jar" was not recognized as a valid application type. If this is an EAR file, please ensure the META-INF/application.xml exists. EJB-JARs should have a META-INF/ejb-jar.xml or corresponding annotations exist. If this is an exploded WAR, the name of directory must be end with ".war". RARs require a META-INF/ra.xml. A JMS deployment should be an XML file whose name ends with "-jms.xml". A JDBC deployment should be an XML file whose name ends with "-jdbc.xml". For other application types, please consult the WebLogic Server documentation.+
    When i try to deploy the same manually from the console, i get a warning stating that WLS thought this as a library and hence proceeding to deploy as a library. After this warning the deployment continues and completes.
    Problem is when i try to deploy using ant, it breaks at this point.
    Is there any means that we can deploy a jar to WLS using ant script. This has to be deployed as a library as other apps would be using this jar.
    Im unable to create a ear file for this single jar file.
    If there is any suggestion on can this be done, please share.
    Thanks,
    Vijay.

    Hi Sunil,
    Thanks for the reply, it worked.
    Another doubt on the same lines. Now that the jar has been deployed as a library in WLS, when i try to deploy a WAR which refers to this deployed jar library, im unable to. I run into and error stating that the library is inaccessible.
    I have to bounce the server and before doing that, i have to manually copy the library.jar from <WLS_domain>/servers/AdminServer/upload/ directory to <WLS_domain>/lib/ directory, once copied i then try to deploy the WAR, then the deployment goes fine.
    Is there any means that this deployed library jar be made available soon after deployment and also to avoid copying the file.
    Thanks,
    Vijay.

  • How can I export my configuration from MAX to another automation system through NI-DAQmx

    Hi,
    has someone of you an idea how i can export my configuration from MAX to another automation system through NI-DAQmx?
    We created a dll for the communication between the AUSY (not LabVIEW) and NI-DAQmx. The export file .nce is not in ascii format, so we can't use it or is there a way of solving our problem with it?
    Thanks for helping me
    Eddy

    I recently came across this, does it help at all?
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E7E556A4E034080020E74861
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    "It’s the questions that drive us.”
    ~~~~~~~~~~~~~~~~~~~~~~~~~~

  • Deploying a java service on different servers using Ant script

    Hi All,
    My scenario is, I have two installations of OSB(with workshop), one on unix machine and other on windows machine...Now the problem is like, I have one java code exposed as a weblogic service ( this is created in workshop of windows machine), I need to deploy this service on my unix server using ANT script....
    Could any one pls let me know how to do this ( deploying services using Ant on different boxes).....
    Any help is appreciated....
    Thanks & Regards
    Feroz Tasha.

    Use the "targets" option to set the server where you want deploy your app.
    More info in [http://edocs.bea.com/wls/docs81/deployment/tools.html#1000477]

  • Deploying BPEL project using ant script in 11g

    Hi,
    i am just trying to deploy a single BPEL project using ant script.
    please specify what are all the needed jar's to be needed for deploying the project using ant
    and where exactly they have to placed, i mean into which directory i need to place those jar's...
    if u have any specific blog which describes step by step procedurs for single project deployment via ant, please tell me...
    its very urgent..
    thanks in advance...

    Hi',
    The .jar file required will be of the project/composite you want to deploy to server, this jar is inside deploy folder (11G).
    This .jar file gets created when you try to deploy your composite using right click on the project in JDev.
    This .jar can be picked from any location.
    Try this its little more descriptive.
    http://shrikworld.blogspot.com/2011/03/deploying-soa-11g-application-using-ant.html
    -Yatan

  • Cannot create OSB project from Eclipse

    I am working with OSB after a while. I have installed OSB and webgic server. When I have installed OSB the Oracle Enterprise pack for Eclipse has been installed.
    Now, when I am trying to create an OSB project from Eclipse. But when I am doing File-->New-->OSB Configuration Project, it gives error message:
    The selected wizard could not be started.
    Plug-in "com.bea.alsb.ui" was unable to instantiate class "com.bea.alsb.ui.wizards.NewALSBContainerWizard".
    com/bea/alsb/core/containers/exceptions/ContainerException
    Do I need to Install anything else?

    I resolved this issue. First, I installed WebLogic Server with Oracle WebLogic Server 11gR1 (10.3.3) + Coherence + OEPE (dowload here) and then, installed Oracle Service Bus v. 11.1.1.3.0. (download here ).
    When install OSB, be sure to select the oepe that is located inside the middleware directory.
    Doing these steps, after these installations, on path "Middleware directory/oepe_11gR1PS2" is the eclipse.exe. If you executed this file, it seems that the problem is resolved when try to create an osb project.

  • Creating Datasource in WLS 10.x using ant script

    All,
    We need to create datasource using ant script which uses wlconfig, has anyone done it before? tried the below script, it creates the datasource and connection pool seperately. In WLS 10.x the connection pool entries are part of the datasource itself but the script creating seperately.
    <?xml version="1.0" encoding="windows-1252" ?>
    <project name="deploy" default="all" basedir=".">
    <!-- master build.properties -->
    <property file="../../build/build.properties"/>
    <property file="build.properties"/>
    <echo> ${wls.home} </echo>
    <echo> ${wls.url} </echo>
    <path id="library.WL">
    <pathelement location="${wls.home}/server/lib/weblogic.jar"/>
    <pathelement location="${wls.home}/../modules/features/weblogic.server.modules_10.3.1.0.jar"/>
    <pathelement location="${wls.home}/server/lib/webservices.jar"/>
    <pathelement location="${wls.home}/../modules/org.apache.ant_1.7.0/lib/ant-all.jar"/>
    <pathelement location="${wls.home}/../modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar"/>
    </path>
    <taskdef name="wldeploy" classpathref="library.WL"
    classname="weblogic.ant.taskdefs.management.WLDeploy"/>
    <taskdef name="wlconfig" classpathref="library.WL"
    classname="weblogic.ant.taskdefs.management.WLConfig"/>
    <target name="init">
    <wlconfig username="${server.user}" password="${server.password}"
    url="${wls.url}">
    <query domain="base_domain" type="Server" name="soa_server1" property="soaServer"/>
    <query domain="base_domain" type="Server" name="soa_server1" property="soaServers"/>
    <create type="JDBCConnectionPool" name="${pool.name}"
    property="pool">
    <set attribute="CapacityIncrement" value="1"/>
    <set attribute="DriverName" value="${database.driver}"/>
    <set attribute="InitialCapacity" value="1"/>
    <set attribute="MaxCapacity" value="10"/>
    <set attribute="Password" value="${database.password}"/>
    <set attribute="Properties" value="user=${database.user}"/>
    <set attribute="RefreshMinutes" value="0"/>
    <set attribute="ShrinkPeriodMinutes" value="15"/>
    <set attribute="ShrinkingEnabled" value="true"/>
    <set attribute="TestConnectionsOnRelease" value="false"/>
    <set attribute="TestConnectionsOnReserve" value="false"/>
    <set attribute="URL" value="${database.connectString}"/>
    <set attribute="Targets" value="${soaServer}"/>
    </create>
    <create type="JDBCTxDataSource" name="${datasource.name}">
    <set attribute="JNDIName" value="${datasource.jndi.name}"/>
    <set attribute="PoolName" value="${pool}"/>
    <set attribute="Targets" value="${soaServers}"/>
    </create>
    </wlconfig>
    </target>
    <target name="deploy" depends="init"></target>
    </project>
    database.connectString=jdbc:rmi://localhost/jdbc:odbc:RoosterDSN
    database.user=admin
    database.password=admin
    database.driver=org.objectweb.rmijdbc.Driver
    datasource.jndi.name=jdbc/MsAccessDataSource
    datasource.name=MsAccessDataSource
    pool.name=MsAccessDataSourcePool
    Was wondering if anybody has done it? please let me know if it's possible.
    Thanks in advance..

    Hi Girish,
    Please go through with below post.
    http://rocksolutions.wordpress.com/2010/03/29/creating-a-connection-pool-using-ant-in-weblogic/
    Let me know in case any issues observed.
    Thanks

  • Remote deploy a war file in weblogic using ant script

    Hi,
    How do I remote deploy a war file in weblogic using ant script
    Thanks

    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/programming/wldeploy.html

  • How to remotely deploy adf application using ant script

    Please suggest some pointer on how to remotely deploy adf application using ant script.
    I have created automatic inbuild ant script using jdevloper and ojdeploy that create a war file into my adf application deploy folder.
    Now i want my war to be deploy remotely on weblogic server.
    Is there any inbuld functionality provided by jdeveloper for same.
    Can any one please share build.xml for adf application for deploying application remotely.
    I try to use wlserver but not much success.
    Thanks in advance.
    Sumit Bhasin

    [url http://download.oracle.com/docs/cd/E12839_01/web.1111/e13706/wldeploy.htm]the docs are pretty good.
    John

  • ANT_HOME is set incorrectly while deploying BPEL 11g using Ant script

    Hi All,
    I am new to ant script, i am deploying BPEL process(11g) using ant script. I set ANT_HOME to G:\Oracle\Middleware\jdeveloper\ant (the location of ant ) and i set PATH to G:\Oracle\Middleware\jdeveloper\ant\bin
    while excecuting 'call ant -f build.soa.xml deployeComposite -Dtargetenv dev
    i am getting the this error
    "ANT_HOME is set incorrectly or ant could not be located please set ANT_HOME"
    please help me in this issue..
    Thanks in advance

    Why? Just copy/paste the error into Google and help yourself.
    For further assistance with your SOA suite deployment issue, refer to a SOA suite related forum. This has absolutely -nothing- to do with general Java development and especially not the java compiler.

  • Metadat file upgrade using ANT script

    Hi,
    I would like to upgrade weblogic portal 10.2 application to 10.3.
    To do this, I need to update the metadata file. I'm able to do this uising workspace.
    Please let me know how to do the same using ant script.

    O/S-Error: (OS 3) The system cannot find the path specified.
    I've tried running it with and without the .dbf file in place, and yes the path does >>exist.If the path really really exist then make sure the oracle user has proper permission on that directory.
    Daljit Singh

  • Deploy application using ant script vs shell script

    Hi,
    I work with OAS 10.1.2 and I'm using shell script with dcmctl command to deploy EAR into OC4J but I know that ant script do the same things. I want to know if my choice is good or is it better to use ant script ?
    Regards

    This is difficult to decide.
    When you have just a few ear files you deploy once in a while a shell script might be sufficient. When developing more complex systems you should use ant as this is easier to maintain.
    cu
    Andreas

  • UnDeploying EAR from Oracle App server using Ant Script

    I am trying to deploy & undeploy the ear file using the ant script.
    I am using the following script to undeploy the application
              <target name="undeploy" description="Undeploy Application">
              <java jar="${OCM_DIR}/jdev/lib/oc4j_remote_deploy.jar" fork="true">
                   <arg value="http://${ias.host}:${ias.em.port}/${ias.dcmservlet}/"/>
                   <arg value="${ias.admin}"/>
                   <arg value="${ias.admin.password}"/>
                   <arg value="undeploy"/>
                   <arg value="${ias.oracle.home}"/>
                   <arg value="${app.name}"/>
                   <arg value="${ias.oc4j.instance}"/>
              </java>
         </target>
    & getting the following error
    [java] Initializing log
    [java] Servlet interface for OC4J DCM commands
    [java] Command timeout defined at 600 seconds
    [java] Executing DCM command...
    [java] Executing command undeploy /oramp01/app/oracle/product/devmid01 jisdev JIS_sandbox_dev UNDEFINED
    [java] Command = UNDEPLOY
    [java] Opening connection to Oc4jDcmServlet
    [java] Setting userName to ias_admin
    [java] Sending command to DCM servlet
    [java] HTTP response code = 200, HTTP response msg = OK
    [java] Command was successfully sent to Oc4jDcmServlet
    [java] Receiving session id from servlet to check command status
    [java] Session id = aa63b901712fe1d1f07cfd44380b5459eda2437e860
    [java] Please, wait for command to finish...
    [java] Checking command status...
    [java] Setting userName to ias_admin
    [java] Setting Cookie to JSESSIONID=aa63b901712fe1d1f07cfd44380b5459eda2437e860
    [java] Checking command status
    [java] HTTP response code = 200, HTTP response msg = OK
    [java] Command has finished
    [java] Receiving command exit value
    [java] Receiving command output
    [java] **** No output was received from command
    [java] Closing connection to Oc4jDcmServlet
    [java] #### DCM command did not complete successfully (-8)
    [java] #### HTTP return code was -8
    [java] Java Result: -8
    Can you please let me know what is the problem and how can we fix it.
    Both the oracle as well as the jdev/lib/oc4j_remote_deploy.jar are of the version 10.1.2.
    Thanks,
    Vishnu

    I think you need:
    <arg value="-undeploy"/>
    (notice the -)
    Have you had any luck?

Maybe you are looking for

  • Script to Export Pervious Day Events Logs to CSV

    HI, I am trying to export all the previous day's application event logs to a CSV file. I found the following script on net. But for this script to work I need to enter in the Event ID's I wont to export. Does anyone have any idea how I can change ths

  • Error while creating media issue in msd using jpmg0

    Dear all, kindly help me to solve the following issue. when i am creating media issue using tcode jpmg0, in the  process lo,g system shows the following error message. "Required parameters missing when calling up module " ACCOUNTING_KEYS_READ_FOR_BWK

  • ITunes 10.6.1 Update button for iOS update does not work (a bug)

    iTunes 10.6.1 Update button on iOS device Summary / Version page does not update devices. It only checks the iTunes version! With iTunes 10.6.1, connect an iPad, iPhone, iPod running pre-6 iOS version. On iPad Summary / Version page, next to  [Update

  • GetQueryViewData multiple values

    Hi, I don't know how to set values for multi value parameters; a request like this always returns the error below. Any suggest? REQUEST: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:s

  • Copying queries between cubes

    Hi, I would like to copy queries from a cube to a MultiProvider. Both have the same structure. I found the help at http://help.sap.com/saphelp_nw04/helpdata/en/9f/f57539d6d1c93be10000000a114084/content.htm . There it says: Result The copied queries a