XML Configuration Files Batch Processing

Greetings All,
I have configuration file in XML as follow:
<property>
<name> world.wide.web.complexity.level </name>
<value> 10 </value>
<description> describes how complex the web is getting, see exitement for related values</description>
</property>
So, I would like to write a java program, that will generate several copies of the above file but with different values for one or several properties.
I have discovered JDOM, SAX, apache configuration and so many technologies but didn't find a simple solution to this simple problem at a first pass.
Many thanks in advance for your help

Here is a way to set global container properties.
You can get your container to read a properties file by modifying opmn.xml as follows:
<process-type id="ct01" module-id="OC4J">
<module-data>
<category id="start-parameters">
<data id="oc4j-options" value="-p /filepath/properties.file"/>
These can then be read in with a System.getProperty() command.

Similar Messages

  • How to generate an XML Configuration File for EBS Source Type

    Hi,
    We have installed SES, I want to integrate it to enable for searching repository contracts.
    In the sources I have selected oracle.apps.okc.repository.textsearch.server.RepHeaderSearchExpVO.
    For this source I need to specify the Configuration URL.
    Here I need to provide the path for configuration XML file. But before that I need to generate the XML Configuration file.
    Is there any steps on how we can create this XML file.
    like I would want to know how we can create the XML file and on which folder on the server should I be putting it
    Thanks

    Hi there,
    We are running into same issue and need the exact same information. Can someone help with this question on priority?
    Thanks,
    Darshan

  • XML configuration file to link to frames in Flash - As2.0

    How can I set the url or link attribute from the XML configuration file to link to frames in my movie instead opening a HTML page? I am using Actionscript 2.0
    Thank you.

    What type of file is using this xml data?  If it is being read by the AS2 file, then your data should resemble either frame labels or frame numbers.

  • Log4j: XML configuration file problem

    Hello,
    I set up some logging in my existing application with log4j and an xml configuration file. Now I made some changes to my package structure, and some problems occured. So I thougt of setting the logging level of one of my loggers (named myapp.iointerface.DBAccess in the config file). So the only change I did was adding a <param name="Level" value="TRACE"/> to my logger. Now, log4j complains when it reads the configruation file:
    log4j:WARN Continuable parsing error 36 and column 11
    log4j:WARN The content of element type "logger" must match "(level?,appender-ref*)".My config file:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
    <log4j:configuration debug="false" xmlns:log4j="http://jakarta.apache.org/log4j/">
         <appender name="RootConsole" class="org.apache.log4j.ConsoleAppender">
              <param name="Threshold" value="DEBUG"/>
              <param name="Target" value="System.err"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
              </layout>
         </appender>
         <appender name="LoginInfo" class="org.apache.log4j.FileAppender">
              <param name="Threshold" value="TRACE"/>
              <param name="File" value="${user.dir}/login_info.log"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %nIn Zeile Nummer: %L %m %n%n"/>
              </layout>
         </appender>
         <appender name="DBConnectionInfo" class="org.apache.log4j.FileAppender">
              <param name="Threshold" value="TRACE"/>
              <param name="File" value="${user.dir}/db_connection.log"/>
              <layout class="org.apache.log4j.PatternLayout">
                   <param name="ConversionPattern" value="%d{dd MM yyyy HH:mm:ss} %p %C %n%m %n%n"/>
              </layout>
         </appender>
         <logger name="myapp.windows.MainFrameController" additivity="false">
              <appender-ref ref="LoginInfo"/>
         </logger>
         <logger name="myapp.iointerface.DBAccess" additivity="false">
              <param name="Level" value="TRACE"/>
              <appender-ref ref="DBConnectionInfo"/>
         </logger>
         <root>
              <param name="Level" value="DEBUG"/>
              <appender-ref ref="RootConsole"/>
         </root>
    </log4j:configuration>Does anybody know what's wrong with that? I don't understand and found nothing googling it netiher. The strange thing is, that logging messages with level TRACE are recorded in the destination file, but the level id DEBUG.
    Thx,
    Julien

    If you look at the error, the parser expects level and not Level
    So :
    <param name="Level" value="TRACE"/>should be :
    <param name="level" value="TRACE"/>Same goes for :
    <param name="Level" value="DEBUG"/>That will solve the problem (even though it is not a critical error)!

  • Setting time in  adf-faces-config.xml configuration file

    Hello check this link
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_convertDateTime.html
    this specifies "Timezone can be set per web-app in adf-faces-config.xml configuration file. If timeZone is not set on the converter, then timezone will be defaulted to the value set in adf-faces-config.xml configuration file. If it is not set in the configuration file, then it will be defaulted to GMT."
    how to set timezone in adf-faces-config.xml configuration file please specify
    Regards
    Mayur Mitkari

    where in adf-faces-config.xml i can add this line , and howThis might help: http://docs.oracle.com/cd/E24382_01/web.1112/e16181/af_global.htm#BJECDDDE

  • Single XML configuration file for all the SSIS packages(including parent and child packages)

    Hi
    I have some 16 ssis packages. source Db and destination Db for these packages are common. I am calling these child packages in a master package.
    I want to use only one XML config file for this master.
    How do i use same for all child packages?
    and can i do it with parent package variable?

    I created a master package with a variable master, and in value i have entered the configuration file path.
    Hi vjp dinu,
    You should create variables in the parent package to pass values to variables in each child package rather than pass the file path of the XML Configurations file of the parent package.
    As Visakh mentioned, you can achieve your goal by creating corresponding variables in the parent package for each child package, and enable Package Configurations for the parent package so that you can control the values through the XML Configurations file
    for the variables of the parent package.
    Supposing there is a variable FilePath in child package 1, a variable ServerName in child package 2, then, we need to create two variables pFilePath, pServerName in the parent package. After configuring the Parent package variable in each child package (e.g.
    mapping pFilePath to FilePath, pServerName to ServerName), you can enable XML Configurations for the parent package, and expose the value property for both pFilePath and pServerName variables. In this way, you can modify the XML Configurations file of the
    parent package and the specified values will passed to the child packages.
    Reference:
    http://microsoft-ssis.blogspot.com/2011/06/passing-variables-from-parent-package.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • Server.xml configuration files

    Hi all,
    The server.xml configuration files have a common defintion for different servers? or each server has its own definition.
    Thanks.

    each has its own.

  • Loading XML Configuration File into Java

    I have a stored procedure wrapper to a Java method (within a jar file) that has been loaded into the database. I need to load an XML configuration file in this method and parse it but get the following error.
    <Line 2, Column 192>: XML-24538: (Error) Can not find definition for element 'LODConfigs'
    When I run the method standalone through netbeans it parses fine and is able to load the file. I've confirmed that it is able to read the file but I am lost as to what could be the problem. Any suggestions would be welcome.
    The header of the file is
    <?xml version="1.0" encoding="UTF-8" ?>
    <LODConfigs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.oracle.com/spatial/network/lodLODConfigs.xsd"
    xmlns="http://xmlns.oracle.com/spatial/network">
    <LODConfig globalNetworkName="$DEFAULT$" networkName="$DEFAULT$">
    <networkIO>
    </networkIO>
    </LODConfig>
    </LODConfigs>

    Just a guess really, (and this is an old question now - so you may have moved on).. is your XML parser attempting to use the schema location to pull the XML schema from the internet?
    If so, that might run fine in netbeans, but hit java permission limits in Oracle. Have you tried running it in netbeans with the network cable unplugged.
    If that fails with the same error as the Oracle JVM, that might give a clue as to the problem and you can troubleshoot the permissions from there.

  • Java and XML Configuration Files

    Hi,
    Can anyone tell me the best way to read information stored in an XML configuration file into my Java program? I have a factory class which I want to instantiate classes from at runtime and I want to be able to read in the class names from a XML configuration file to make it extensible..
    Many thanks....

    Depends on what the OP means by XML configuration files.
    Spring reads Spring application context files. Those can help to configure objects, no doubt.
    If the OP meant reading in XML serializations of Java objects and turning them back into Java objects, then XStream is the right thing to do.
    %

  • XML configuration file does not show entry for PI_BASIS for PREPARE

    Hello SAP Gurus,
    We are doing ECC 6.0 SR3 upgrade including EHP3 SP3
    We generated XML configuration file for EHP3 from MOPZ
    But during XML file does not contains any information for PI_BASIS target level or source level
    current level is 2006_1_620
    We tried that XML file in PREPARE during EHP_INCURSION phase
    but failed all time.
    Let me know what we have to generate XML file with proper information including PI_BASIS
    Even PI_BASIS not appearing in MOPZ list for selection, its surprising for us.
    Any idea/direction would be highly appreciated.
    Thanks,
    Amit Lal

    Hi,
    I forwarded my query to AGS Dev support, They verified Solution manager and found no problem since it was up to date SPS15 ST400
    Problem was in SAPup, they provide the lastest sapup tool that was again released for this specific problem. See notes for SAPup with keyword EHP
    thanks,
    Amit

  • SPA122 - How to turn off "DHCP Option To Use" in the Provisioning tab using the XML configuration file?

    As default, SPA122 and SPA112 have DHCP Options 66, 160, 159 and 150 turned on.
    Our pre-provisioning process includes adding our default profile rule to our provisioning server for the device to pull its configuration files once the device has been added to an account.
    However, it seems like some customers have had problems with the device downloading the definite configuration file and manually turning off option Option 66 in the provisioning tab in the device solves this issue.
    Is there any option we could add to our pre-provisioning file so that it removes 66 from the "DHCP Option to Use" field in the provisioning tab?
    Please advise...

    Thanks Dan,
    I didn't know the dhcp server could serve different options to different classes of clients, I'll have to look that up!
    Moises
    so if your provisioning file has this line below (this is from a spa5xx config I had in my temp folder, so use the line from your provisioning file, or use the SPC tool to create a new default config for that device type)
    <DH<DHCP_Option_To_Use group="Provisioning/Configuration_Profile">66,160,159,150,60,43,125</DHCP_Option_To_Use>
    change it to
    <DH<DHCP_Option_To_Use group="Provisioning/Configuration_Profile">160,159,150,60,43,125</DHCP_Option_To_Use>
    Hope it helps,
    Provisioning guide is here
    Cisco IP Telephony Devices Provisioning Guide - Cisco Support Community
    Dan

  • Ok, my problem....merging two unique files batch Process

    Ok, my problem....I have been deconstructing films, so I have thousands of picture files for batch processing in Photoshop (Resizing etc) What I would like to do is batch merge two or maybe three lots of deconstructed film footage image files from different sources, one as a background film image file and one as the forground film image file layer, thousands of images all at once, after they have been processed first in photoshop, so I have seperate folders with the image files in each folder, they need to be combined in sequence as I want the image/frame numbers to match up in each folder, then combined to non merged layers and saved into another folder, I want non merged layers, so I can use an action later to balance the overlay. I know premiere and After Effects could maybe do this, but I am looking for a different kind of effect.....thanks 

    This might help, but very probably one of the more experienced Scripters has a Script (possibly with a more comfortable interface or more features) for that, too:
    #target photoshop
    // dialog for folder-selection;
    var theFolderOne = Folder.selectDialog ("select a folder containing the backgoround images");
    var theFolderTwo = Folder.selectDialog ("select a folder containing the foreground images");
    var theFolderThree = Folder.selectDialog ("select a folder to save the combined images to");
    if (theFolderOne && theFolderTwo && theFolderThree) {
    var theFilesOne = theFolderOne.getFiles(checkFor);
    var theFilesTwo = theFolderTwo.getFiles(checkFor);
    // check if both folders contain the same number of files;
    if (theFilesOne.length != theFilesTwo.length) {
    alert ("the folders don’t contain the same number of images")
    // else do the stuff;
    else {
    // create the psd-options;
    psdOpts = new PhotoshopSaveOptions();
    psdOpts.embedColorProfile = true;
    psdOpts.alphaChannels = false;
    psdOpts.layers = true;
    psdOpts.spotColors = true;
    // run through the files;
    for (var a  = 0; a < theFilesOne.length; a++) {
    // open background-image;
    var theFile = app.open(File(theFilesOne[a]));
    theFile.activeLayer = theFile.layers[0];
    // place foreground-image;
    var idPlc = charIDToTypeID( "Plc " );
    var desc6 = new ActionDescriptor();
    var idAs = charIDToTypeID( "As  " );
    var desc7 = new ActionDescriptor();
    var idfsel = charIDToTypeID( "fsel" );
    var idpdfSelection = stringIDToTypeID( "pdfSelection" );
    var idpage = stringIDToTypeID( "page" );
    desc7.putEnumerated( idfsel, idpdfSelection, idpage );
    var idPgNm = charIDToTypeID( "PgNm" );
    desc7.putInteger( idPgNm, 1 );
    var idCrop = charIDToTypeID( "Crop" );
    var idcropTo = stringIDToTypeID( "cropTo" );
    var idboundingBox = stringIDToTypeID( "boundingBox" );
    desc7.putEnumerated( idCrop, idcropTo, idboundingBox );
    var idPDFG = charIDToTypeID( "PDFG" );
    desc6.putObject( idAs, idPDFG, desc7 );
    var idnull = charIDToTypeID( "null" );
    desc6.putPath( idnull, new File( theFilesTwo[a] ) );
    var idFTcs = charIDToTypeID( "FTcs" );
    var idQCSt = charIDToTypeID( "QCSt" );
    var idQcsa = charIDToTypeID( "Qcsa" );
    desc6.putEnumerated( idFTcs, idQCSt, idQcsa );
    var idOfst = charIDToTypeID( "Ofst" );
    var desc8 = new ActionDescriptor();
    var idHrzn = charIDToTypeID( "Hrzn" );
    var idRlt = charIDToTypeID( "#Rlt" );
    desc8.putUnitDouble( idHrzn, idRlt, 0.000000 );
    var idVrtc = charIDToTypeID( "Vrtc" );
    var idRlt = charIDToTypeID( "#Rlt" );
    desc8.putUnitDouble( idVrtc, idRlt, 0.000000 );
    var idOfst = charIDToTypeID( "Ofst" );
    desc6.putObject( idOfst, idOfst, desc8 );
    var idAntA = charIDToTypeID( "AntA" );
    desc6.putBoolean( idAntA, true );
    executeAction( idPlc, desc6, DialogModes.NO );
    // save the combined files;
    theFile.saveAs(new File (theFolderThree + "/file" + bufferNumberWithZeros((a + 1), 4) ), psdOpts)
    theFile.close(SaveOptions.DONOTSAVECHANGES)
    ////// check for psd, tif or jpg //////
    function checkFor (theFile) {
    if (theFile.name.slice(-4) == ".psd" || theFile.name.slice(-4) == ".tif" || theFile.name.slice(-4) == ".jpg") {return true}
    else {return false}
    ////// buffer number with zeros //////
    function bufferNumberWithZeros (number, places) {
    var theNumberString = String(number);
    for (var o = 0; o < (places - String(number).length); o++) {
    theNumberString = String("0" + theNumberString)
    return theNumberString

  • Illegal characters in xml configuration files

    Hi,
    We are storing user configuration details in the server.xml for use with startup classes.
    We are experiencing problems where the values of this configuration information contain characters such as < & > and we receive the following error:
    07/05/17 15:05:35 Start process
    Error initializing server: Fatal error at line 92 offset 20 in file:/home/orabpel/OraHome_2/j2ee/OC4J_BPEL
    /config/server.xml: The content of elements must consist of well-formed character data or markup.I was hoping the problem could be resolved by enclosing the values of nodes which contain illegal characters with <![CDATA[]]>, but this has not resolved the problem.
    Is there any way we can achieve this?
    The reason we are storing these characters in the server.xml is because they represent obfuscated passwords in rot39 format. Perhaps there is a more suitable obfuscation/encryption format that is very simple to implement?
    Thanks
    Toby

    Actually, specifing the values as CDATA does work, but i had a typo that was causing it to fail.
    Toby

  • Auto update of OC4J xml configuration files with JDev

    When using JDeveloper with source control (such as ClearCase), Is there a way to configure JDev to prompt the user to check-out the ejb-jar.xml, orion-ejb-jar.xml, web.xml, or application.xml files when JDev needs to update them but finds them to be read-only?
    I have found that if these xml files are not checked-out (read-only) and JDev needs to update them (such as when a new EJB is created), JDev does not notify the user that it cannot update them and it does not prompt the user to check them out of source control. Developers often forget that they need to manually check-out these XML files and perform an "update" on them, thus creating configuration problems.
    Please advise.
    Thank you.
    Matt Burton

    Matt,
    Not yet. We have similar requirements for other areas of JDeveloper. This is certainly on the list of enhancements.
    David Brown
    SCM Product Management

  • How should a batch process for text alignment be configured in PDF

    Hi,
    Using Adobe Photoshop CS5 extended, how can I configure a batch process to align the text on about 700 single page pdfs (of text)?  The text consists of four tables of numbers and one page number per page.
    Thanks.

    Thanks.  I didn't think so.
    I thought it was a Photoshop question (since I know how to do it one page at a time manually in Photoshop) and I did post the question in the Photoshop Forum.  Apparently it's not possible to batch the process in Photoshop, so someone moved the question to the Acrobat Forum.

Maybe you are looking for

  • "Browser" Notification

    I have a notification on the top right of my screen with the number 2 and what looks like small earth or browser icon.  What does this mean and how do I remove it?  It is about in the same place as where new messages would be.  I can't seem to find a

  • BPM11g-LDAP Roles

    Hi All, I am stuck with the following issue. I am using Jdeveloper 11.1.1.3.0 for BPM 11g implementation on Sales Application. I have Weblogic Server 10.3.3 Installed and configured the domain. Also the server is up and running. In Jdeveloper from BP

  • Bad rendering quality of FC ExpressHD, where is the clue?

    Hi,I´m producing little animated comic-movies(I´m Illustrator). I have problems rendering Quicktime-movies(or else) in FC Express HD. The moving parts of the pictures show ugly horizontal lines. I tried each compression setting, but maybe I should ch

  • Sign in problems on some Skype phones

    We've recently received some reports of some users having trouble to sign in on their Skype hardware phones (GE 31591 and similar). The phone will not accept a prefectly valid login that works fine when used elsewhere (e.g. on desktop Skype clients o

  • Problem Event AppHangB1 (Lr)

    I can open Lr to the last project I worked with, but when I click on import and select my camera, everything freezes up and I get an error message with the following description. I've tried rebooting my pc (you never know) and short of uninstalling a