How to read file(key-value) in OSB properties?

Hello

I have a scenario in which I have to read a few properties(key-value) in a file. Former entire code was developed in java and it is easy to read the java properties file.
But now I need to implement this in OSB and performance is a crucial element in this project.

I followed DVM approached defined in

http://blogs.Oracle.com/christomkins/2010/02/domain_value_maps_in_oracle_se.html and http://blogs.oracle.com/christomkins/2010/02/domain_value_maps_in_oracle_se.html

But it did not work. I have hundreds of properties (key-value pairs) to read and must transmit it to the service of the company and with the intervention of the proxy service.

What is the best approach for this (can't go to db call performance being very critical)?

Thank you
Maryse

Hello Francois,.

XPath in the action assign OSB should be like -

$DVMVar / ns1:rows[1]/ns1:row[1]/ns1:cell[1]/text()

where DVMVar is the content below -








Dealer.Locate.default.buypower.Link
http://www.xyz.com


dealer.locate.default.unitOfMeasure
MILES


Dealer.Locate.Brand.identifier.nu
Nurun


Dealer.Locate.Brand.identifier.bu
Buick


Dealer.Locate.Brand.identifier.ca
Cadillac


Kind regards
Anuj

Tags: Fusion Middleware

Similar Questions

  • 10g: how to read a key/value registry, the mac address

    Dear,

    I have developed an application using Forms 10 g. I need in a certain place to read a registry key for windows server 2003 on which the application server is installed.

    I know how to read the registry on the Client computer using webutil. But is there any other utility to read registry of the application server?
    Or I have to use D2KWUTIL in my form?

    Also, I need to read different physical address on the application server.

    Help, please

    Thank you very much.

    I do not remember where, but you can download it from there.

    François

  • Using XML as a pair key / value in OSB 11 g

    Hi all

    I made a new Test project. There are only 2 files:
    1 proxies - that contain proxy services
    2 xml - containing XMLs

    An example of XML (XML name - TestXML) present in the xml file:

    < valueDetails >
    ABC < key1 > < / key1 >
    < > 123 key2 < / key2 >
    a12s < key3 > < / key3 >
    < / valueDetails >

    I want to use in the pipeline of proxy as key-value property services. How do I get there?

    I use OSB 11 GR 1 material.

    Thanks in advance!

    Kind regards
    Karthik.

    Save the XML as a resource of xquery to the osb. Then, use an entitled action for load in the pipeline. For example affect XQuery resources KeyPairsXML to $keypairs. After this $keypairs will be your xml and appropriate xpath allows to recover the key you want,

  • In CloverETL how to read file xlsx with a column of type "long".

    Hi all

    Let me know how to read an xlsx (Excel) file with columns of data type "long".

    I used XLSDataReader to read file xlsx. There are names of "Remarks" column, which exceeds the linits of 256 characters, so I can not use type 'string' to do this.

    IM using "long" datatype and graph below error crossings.

    Pointers on this will be greatly appreciated.

    INFO [main] - * graphic CloverETL framework/transformation, (c) 2002-2013 Javlin a.s., published under the GNU Lesser General Public License *.
    [Main] INFO - running with CloverETL library version 3.4.1 build #010 updated 07/01/2013 18:38:12
    INFO [main] - running on 4 CPUS, operating system Windows 7, architecture amd64, Java version 1.7.0_07, max memory available for JVM 913920 KB
    INFO [main] - loading properties by default: defaultProperties
    INFO [main] - graphic definition file: graph/SurveyResponses.grf
    INFO [main] - graphical revision: 1.16 modified by: 470707 update the: kill Jan 20 16:13:52 IST 2015
    INFO [main] - check the graphical configuration...
    INFO [main] - graphical configuration is valid.
    INFO [main] - graphical initialization (SurveyResponses)
    INFO [main] - initialization of the phase 0
    INFO [main] - Phase 0 initialized successfully.
    INFO [WatchDog_0] - starting all the nodes in the phase [0]
    INFO [WatchDog_0] - has successfully started all nodes in phase!
    INFO [XLSDATA_READER1_0] - reading data of 0 sheet (Sheet1).
    ERROR [WatchDog_0] - component [XLSDataReader:XLSDATA_READER1] finished with ERROR status.
    How (long) field cannot be set to the value "comment." does not match the specified format ' ' with good reason 'incomplete analysis. " in folder 1, 23 ("comment"), metadata field 'Survey_Responses_Sheet1 '; value: 'How' (note that for parallel processing ParallelReader or server, run the registration number may be incorrect)
    ERROR [WatchDog_0] - the error Details:
    org.jetel.exception.JetelRuntimeException: component [XLSDataReader:XLSDATA_READER1] finished with ERROR status.
    at org.jetel.graph.Node.createNodeException(Node.java:535)
    at org.jetel.graph.Node.run(Node.java:514)
    at java.lang.Thread.run(Thread.java:722)
    Caused by: org.jetel.exception.BadDataFormatException: how (long) field cannot be set to the value "comment." does not match the specified format ' ' with good reason 'incomplete analysis. " in folder 1, 23 ("comment"), metadata field 'Survey_Responses_Sheet1 '; value: 'How' (note that for parallel processing ParallelReader or server, run the registration number may be incorrect)
    at org.jetel.data.LongDataField.fromString(LongDataField.java:465)
    at org.jetel.data.parser.XLSXDataParser.parseNext(XLSXDataParser.java:492)
    at org.jetel.data.parser.XLSParser.getNext(XLSParser.java:136)
    at org.jetel.util.MultiFileReader.getNext(MultiFileReader.java:432)
    at org.jetel.component.XLSReader.execute(XLSReader.java:562)
    at org.jetel.graph.Node.run(Node.java:485)
    ... 1 more
    Caused by: java.lang.NumberFormatException: incomplete analysis
    at javolution.text.TypeFormat.parseLongString (unknown Source)
    at javolution.text.TypeFormat.parseLong (unknown Source)
    at javolution.text.TypeFormat.parseLong (unknown Source)
    at javolution.text.TypeFormat.parseLong (unknown Source)
    at org.jetel.util.formatter.JavolutionNumericFormatter.parseLong(JavolutionNumericFormatter.java:74)
    at org.jetel.data.LongDataField.fromString(LongDataField.java:462)
    ... 6 more

    INFO [WatchDog_0] - the implementation of phase [0] completed with error - elapsed time (sec): 4
    ERROR [WatchDog_0] -! Completed with error - graphic stop run!
    INFO [WatchDog_0]-* the summary execution of Phases * -.
    INFO [WatchDog_0] - Phase # finished status RunTime (sec) MemoryAllocation (KB)
    INFO [WatchDog_0] - 0 4 175279 ERROR
    INFO [WatchDog_0]-* end of summary * -.
    INFO [WatchDog_0] - finished the watchdog thread - total running time: 4 (s)
    INFO [main] - freeing graphics resources.
    ERROR [main]-
    --------------------------------------------------------------------------------------------------------------------------------------------------------- Error details ----------------------------------------------------------------------------------------------------------------------------------------------------------
    Component [XLSDataReader:XLSDATA_READER1] finished with ERROR status.
    How (long) field cannot be set to the value "comment." does not match the specified format ' ' with good reason 'incomplete analysis. " in folder 1, 23 ("comment"), metadata field 'Survey_Responses_Sheet1 '; value: 'How' (note that for parallel processing ParallelReader or server, run the registration number may be incorrect)
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    ERROR [main] - the graph failed!

    I think the 256 character limit is a red herring.  All data is there, the front-end integrator is truncating only for display purposes.

    Your data is a string, it should certainly be classified as a string in the metadata.  For a long time is for numeric values.

    I don't think there is a problem here, if you were to write this data to the trash or a text file (after reading it in), you will see that your data is not truncated.

    Kind regards

    Patrick Rafferty

    Branchbird

  • How to read a counter value for the separation of the two edge before meter is stopped by the second edge (6602 Council)?

    I use a timer/counter with DAQmx 6602. I use the separation of two - available via DAQmx cash edge. Count between the two edges works properly, however I do not know how to read the value of the counter during the counting operation (i.e. after the first edge triggered the beginning of the count, but before the second edge triggered the end of the counting). I'll have to wait for the second goes off the edge of the end of the countdown until I can get a counter value. I need to be able to access the current value of the County during the count operation. This was possible in traditional DAQ. How can it be accomplished using DAQmx?

    Ah shoot - I was afraid that this might be the case (for what it's worth, my series of X returned intermediate values, but the material and the underlying driver are quite different)...

    You just need to take one measure at a time or you are buffer several measures of separation of the two edges at the same time?  So just to take one measure at a time, you can set a task of edges of count using the database internal time as the source using an arm start trigger (first edge) and a sample of clock (second Board) to work around the problem.

    Best regards

  • How to read an int value to a file

    Hello programmers.

    I am facing a problem no doubt very simple but which has kept me stuck for some time, so I'm now looking for your help.

    int i = 0;

    try {}
    FileConnection fconn = (FileConnection) Connector.open (System.getProperty ("fileconn.dir.photos") + "increment.txt", Connector.READ_WRITE);
    If (fconn.exists ()) {}
    OutputStream os = fconn.openOutputStream ();
    String value = "1";
    OS. Write (value. GetBytes());
    OS. Close();
    InputStream is = fconn.openInputStream ();
    i = Integer.parseInt (is. ToString());
    is. Close();
    }
    If (! fconn.exists ()) {}
    fconn. Create() ;}
    fconn. Close();
    }
    catch (IOException ioe) {}

    I know that the file of the photo isn't the best idea, it's just a test. So, when I go into the increment.txt file, I see that a '1' is written, however, when I try to start it I get a NumberFormatException, do you know why and how I can solve this problem?

    Thank you very much for any help, I won't forget the congratulations...

    Yes indeed you're right, it works!

    Thanks a lot again Simon, you be everhelpfull in my daily programming efforts.

    Here is the final code that worked for me:

    InputStream is = fconn.openInputStream ();
    InputStreamReader isr = new InputStreamReader (is, "UTF8");
    StringBuffer buffer = new StringBuffer();
    int ch;
    While ((ch = isr.read ()) >-1) {}
    buffer. Append ((Char) ch) ;}

    Temp = buffer. ToString();
    Temp.Trim ();
    i = Integer.parseInt (temp);
    is. Close();

    Bravo to you, of course...

  • How to read a particular value of a QString

    Hi all

    I have a Qstring called rawdata and on the console, I see that it contains

    "[n]@status_public".
    active_bands:JSON: {'cdma': 0, 'gsm': 0, 'umts': 0, 'lte': 64}
    band_capability:JSON: {"cdma": 0, "gsm": 15, "umts": 59, "lte": 16846939}
    cell_search_status:JSON: {"status": "not_searching"}
    NETWORK_SERVICE:n:35652618
    network_technology:JSON: ["lte"]
    power_statusN
    pps_version:JSON: {'major': 1, 'minor': 0}
    provider_capability:JSON: {'tech': ['gsm', "umts", "lte"], 'services': 263}
    radio_device_info:JSON: {"modem_fw_version": "M8960A-AAAATCZM - 6.1.02139 1 [6 February 2015 01:00] ',' SVN": 9...} »

    and I want to read the value of "power_statusN.

    How can I do this?

    TIA

    I found the solution, Sir.
    Just do it this way
    If (rawdata.contains ("power_status:N"))
    {
    do something
    }
    on the other
    {
    do something
    }

  • How to read file returned by the file picker

    I'm going to obviously stupid here, but for the life of me I can't figure out how read in a text file returned by the file picker.  I am currently getting the good full path of the file in the file picker but where do I go from here?  BlackBerry.IO.file does not seem to exist in Blackberry 10 and I'm confused as to how I would use the HTML5 File API from only a file returned by the file picker path.

    Can someone please spit out a quick and dirty example showing me the rudiments of reading in the data file from a path returned by the file picker, please?

    Thank you very much

    DM

    Don't know if you have the path to the file, and then you left there. One thing to note. The file MUST be inside you bar (sandbox) OR you need to add the <> ermit > access_sharedermit >
    and then he can live the file in the shared folder on the device.

    Here is a code that you can use to read a file. I poached it our docs found here:https://developer.blackberry.com/html5/apis/blackberry.io.html

    
    
  • How to read the xml value in plsql store proc

    I need to read the value at the bottom of the xml script in plsql procedure. I do not understand how to write. I'm new in xml, please help me solve this problem.


    <? XML version = "1.0" encoding = "UTF-8"? >
    < PrtyActDtlRequest >
    < AcctInfo >
    < > 84188 PartyID < / PartyID >
    < RelAcctID > 125148 < / RelAcctID >
    < RelAcctID > 251486 < / RelAcctID >
    < RelAcctID > 125147 < / RelAcctID >
    < RelAcctID > 125511 < / RelAcctID >
    < / AcctInfo >
    < / PrtyActDtlRequest >

    Here < AcctId > can be repeted n times (unbouinded), but < PartyID > is set once. This is the script that we will get out of the source system.

    Thanks in advance.

    Roy

    You needn't PL/SQL for it. Just use XMLTABLE:

    with t as)

    Select xmltype (')

    84188

    125148

    251486

    125147

    125511

    double x)

    Select PartyID,

    RelAcctID

    t,.

    XMLTable)

    ' / PrtyActDtlRequest/AcctInfo.

    go x

    columns

    PartyID path number "PartyID,

    Path RelAcctIDXml xmltype "RelAcctID."

    ),

    XMLTable)

    'RelAcctID '.

    by the way RelAcctIDXml

    columns

    RelAcctID path number ' / RelAcctID'

    )

    /

    PARTYID RELACCTID
    ---------- ----------
    84188 125148
    84188 251486
    84188 125147
    84188 125511

    Scott@pdborcl12 >

    SY.

  • How to read files torent on windows media player, I downloaded torrent files and wmp says unable to play because he does not support the format and how it has been compressed

    How do I play torrent files and .torrent file to play on wmp extensions, I doown loaded torrent sons and dossier they won't play I get undeclared can not play because it does not support the file or extension or does not know how he formatted or compressed

    Hi tuellahjones,

    I suggest you to update the codecs and check if it helps to solve the problem.

    http://Windows.Microsoft.com/en-us/Windows7/codecs-frequently-asked-questions

  • BlackBerry smartphone how to read files, spreadsheet, PDF, and MS Work

    I'm new to the world of BlackBerry.  Is someone to tell me how can I read MS Spreadsheet, work and my BB8330 PDF?  I need to buy or download software or come with the BB?  Thank you

    If your device is equipped with software 4.5.x.x you will get automatically the documents to go which is delivered with the "Word to go" and "slideshow to go" If you open one of them, click on the menu button and selecting Save, then after the registry you go to the same menu and choose update now... This will update you and gove you "leaves to go."

    in regards to the PDF, you will need to buy the premium version or activate on a BES (through labor)

  • How to read files of emptying of the Mini on Windows 8?

    My computer came into State of freezing randomly. you want to read the dump file?

    I've tried so far:

    clean boot

    performance advocatus

    http://support.Microsoft.com/kb/2681286

    scan SFC, virus scan

    updated drivers

    PC Refresh

    I have new Sony Viao 2 week old no changes.

    everything I do is browse the model and to do some work in ms office

    Give me simple steps to read the dump file or is there any software that do?

    I'm irritable

    DISM / Online/Cleanup-Image /RestoreHealth

    http://www.resplendence.com/WhoCrashed good conjecture to landfills, reading gives you an idea where to look in any case.

  • How to read file and output string base64?

    im a moment difficult reading binary file and converting it to base64.

    is there a setting to extendscript as file.read ('base64')?

    It is possible in HTML:

    var path ="/tmp/test";

    result = window.cep.fs.readFile(path, cep.encoding.Base64);

    if(0== result.err) {

        //success

        var base64Data = result.data;

        var data = cep.encoding.convertion.b64_to_utf8(base64Data);

    }

    else{

        ...// fail

    }

    Alternatively, you can refer to the following examples for more examples:

    https://github.com/Adobe-CEP/samples/tree/master/Flickr

    https://github.com/Adobe-CEP/samples/tree/master/collage

  • How save/read the file on devices BB10?

    Hello!

    I want to save data in the text using JavaScript file, but I can't use blackberry.io.file because it cannot support the BB10.

    How save/read file on BB10?

    For the moment the BB10 device has the best HTML5 browser, so you can use the file HTML5 feature.

    https://developer.BlackBerry.com/HTML5/APIs/FileReader.html <- sadly="" theres="" no="" sample="" code="" here="" for="" noobs="" like="">

    I went www.html5rocks.com for samples.

  • How can I change the values of control based on a file of reading?

    I understand that the controls were only outputs and indicators has only entries, but I'm looking for help to create code that has the capabilities of both. More specifically and, ideally, my façade would allow the user to select an old spreadsheet file to read, and these values of the worksheet would be poster. The user could then change these values to their liking and then submit those twisted values, such as a new file / replaces the old/etc. The important part is the the indicating and control playback in values.

    Thank you

    Need to wire the worksheet values in the local.  The control itself just watches.  What you have wired in your VI sets the control to its current value (of course, a bit pointless).

Maybe you are looking for

  • BIOS and drivers required for CQ45-106AU for OS Windows XP or Free DOS

    Hello, I bought laptop Compaq CQ45-106AU which has Windows Vista Home Basic OS and I am unable to find the BIOS of motherboard, Chipset drivers and all drivers for this perticular computer laptop, I want this downgrade to Windows XP Pro or I want to

  • Upcoming combined Android vzw - speculations and rumors

    OK, so I have but I would like to start a discussion on the next phone Android from Motorola on Verizon Wireless. I'm really happy for this phone, I am a list of rumors and speclation, for the most part taken on sites like BGR. First of all, the name

  • JO 4632: oj4632 hp does not desire to internet only to save it in pdf format print

    I tried the Dr. printing, uninstalling and reinstalling (approx. 20 x), windows troubleshooting, it is defined as the default printer, and I tried it as a connected USB and wireless. Zippo, a little torn between bring it back to the store or throw it

  • Aspire D255 cannot access bios

    Good day guys. Hope you can help me with my problem. I brought an asphire one D255 online without a hard drive. So I got a 500 GB hard drive, AF 4 K sector and install the player. But when I started to boot up the laptop to install the operating syst

  • Name of working group for setting up wireless dv7t-4100

    I just bought a new laptop (laptop entertainment dv7t-4100 CTO).  I use in conjunction with two workstations, running a XP SP3, the other running VISTA.  Introducing the new HP laptop, my name of the network used the default MSHOME XP, and I changed