Synchronous read file and status update

Hi,
CSV file to be loaded into the database table. ASP used as front end and ESB should be used for backend processing!
A csv file is placed in a fileshare by an asp page. After that a button is clicked on the asp page which inserts a record into a database table(A) with the file details. There is a flag field in the table which will be set to 'F' initially.
Now there should be an esb service which will be polling for any new records inserted into the database table(A).
Once it finds any new record, the esb service should update the flag status to 'RF' from 'F' and read the records in the csv file(I think synchronous read file should be used inthe file adapter) and insert them into a database table(B). The flag field is updated to 'RF' so that the asp page informs the user that the csv file is being inserted into the table(B).
After all the records are inserted, the esb service should once again update the flag in table(A) to 'Y' from 'RF' so that the asp page will indicate the user that the csv file is loaded into the data base table.
The challenges that I have here are:
1) I need to have the ESB service with such a sequence of execution that updates the table(A) at each stage so that the asp page can display the status to the USER.
2) The csv file size can be huge. It can contain as many as 100 thousand records with over 50 fields in each record. I will have to probably debatch the file. Once we debatch, seperate instance would be created for each batch. Now we should see to that flag in table(A) is updated to 'Y' only when the last batch of the records are processed.
I am using jdev10134 and oracle SOA suite ESB10134
Someone please advice on how to go ahead.
Cheers,
RV

Hi,
CSV file to be loaded into the database table. ASP used as front end and ESB should be used for backend processing!
A csv file is placed in a fileshare by an asp page. After that a button is clicked on the asp page which inserts a record into a database table(A) with the file details. There is a flag field in the table which will be set to 'F' initially.
Now there should be an esb service which will be polling for any new records inserted into the database table(A).
Once it finds any new record, the esb service should update the flag status to 'RF' from 'F' and read the records in the csv file(I think synchronous read file should be used inthe file adapter) and insert them into a database table(B). The flag field is updated to 'RF' so that the asp page informs the user that the csv file is being inserted into the table(B).
After all the records are inserted, the esb service should once again update the flag in table(A) to 'Y' from 'RF' so that the asp page will indicate the user that the csv file is loaded into the data base table.
The challenges that I have here are:
1) I need to have the ESB service with such a sequence of execution that updates the table(A) at each stage so that the asp page can display the status to the USER.
2) The csv file size can be huge. It can contain as many as 100 thousand records with over 50 fields in each record. I will have to probably debatch the file. Once we debatch, seperate instance would be created for each batch. Now we should see to that flag in table(A) is updated to 'Y' only when the last batch of the records are processed.
I am using jdev10134 and oracle SOA suite ESB10134
Someone please advice on how to go ahead.
Cheers,
RV

Similar Messages

  • I downloaded a reader file and it screwed up my Safari browser and the app opens with the Goggle Quick search which I can't get rid of

    I downloaded a file to open a owners manual for a camera I needed. I had difficulty getting it down loaded and never could get the manual. I tried using my Safari browser and started getting this Goggle Quick Search file which opened in place of my Safari….I tried to close it and I can't. I did manage to get ride of the reader file.

    You may have installed one of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.

  • I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR

    I just stared having problems with importing files from nikon D810 into LR 5.7 it pop a window saying it can not read files on working on a imac 27" running yosemite on my mac pro after a few times it finally was able to read files and import them into LR I never had this problem before was there some kind of update that could of cause this?

  • Spaces in URLs problem w/ new Reader X and XI updates

    Can anyone else confirm that with the new Reader X and XI updates, spaces in URLs get encoded as %2520 instead of %20 causing errors when the links are followed?  This  was/is not a problem with the earlier version of X nor with other pdf viewers.  I believe that this is a bug.

    I am having the same problem. Details ....
    I have created two PDFs in the same folder (I used Power Point to create the contents, and saved as PDF). I want to be able to click a link in the first PDF and cause the second PDF to be opened.
    Everything works fine if there are no blank spaces in the filename of the second PDF (i.e., the target of the link in the first PDF), and no blank spaces in any part of the full path to the second PDF.
    The problem occurs if there are blank spaces in the second PDF's filenames or full path.
    If there are blank spaces (in either filename or path), then when I open the first PDF and hover over the link to the second (target) .... I can see that FOR THE PATH, each blank space has been converted to a %20. FOR THE FILENAME of the target PDF, the blank space shows as a blank space (i.e., not shown as a %20).
    When I click the link in the first PDF, my default browser (Firefox 19.0.2) opens and displays a dialog box tells me that it cannot find the file in question (i.e., the second PDF).
    The file name in the dialog box has each blank space (in both filename and path) converted to a %20 .... HOWEVER, the contents of the browser's address bar has each blank space converted to a %2520.
    It is that address of the second PDF shown in the browser's address bar (with each blank replaced by a %2520) that cannot be found. If I manually alter the contents of the address bar, and remove each 25 (so that each blank is replaced only by a %20) and then hit the Enter key, the second PDF is successfully displayed in the browser.
    Firefox now has it's own PDF viewer. However, I disabled the internal Firefox PDF viewer, and set the default PDF viewer to the Adobe viewer. Problem did not go away. So, I do not think the fault is in the Firefox PDF viewer.
    The previous post stated that Adobe has acknowledged this as a bug. Any word on when/if the bug will be fixed.
    The only work-around I have found is to use filenames and paths that have no blanks. But if one is creating PDFs for customers, then while one might be able to use filenames with no blanks, one cannot insure that customers will not place the PDFs into folders that have noblanks in their paths.
    Any other suggestions while we wait for a fix?
    EDIT: I found a similar thread here: http://forums.adobe.com/thread/1053575?tstart=0

  • Reading files and converting into xml structure

    Hi,
    In my application a client requests for the folder structure information to a server through RMI. The server needs to read files and folders on local machine and convert it into some structure (I am thinking of using xml) and send it back. For eg: I am planning to have Server send back something like:
    <directory name = "parentdirectory">
    <file name = "abc.jpg"/>
    <file name = "def.bmp"/>
    <directory" name = "subdirectory">
    <file name = "hij.jpg"/>
    <file name = "klm.bmp"/>
    </directory>
    </directory>
    It is just the names of the files I am interested in and not the contents. Is this a good approach of sending back the data as a string containg xml definition. Is there any better appproach in terms of performance, memory etc? I am currently planning on using DOM for construction of this structure. Is there a source code for reading and converting the folder structure into xml. Just for your information, the clients gets this information and shows it as a tree structure on the GUI.
    Thanks!!!!

    Is this a good approach of sending back the data as a string containg xml definition. It'll work.
    An alternative, more direct approach is to build a memory representation and send this as argument/return value of an RMI call. You'd need to write classes MyDirectory and MyFile; MyFile has just a name; MyDirectory has a name and a collection of MyDirectory and one of MyFile. Make these classes implement Serializable and you can send them over RMI.
    The effort to write those trivial classes would be less than to implement XML encoding/decoding, and also in terms of runtime performance and memory it will be hard to beat Java's serialization with anything XML-based. In this case I doubt performance/memory are relevant considerations though.
    If for some reason I'd go for sending XML Strings anyway, I wouldn't do the encoding/decoding myself; I'd use XStream to convert Java classes to/from XML and still end up writing the above two classes and be done.
    Sorry if you wanted a simple yes or no :-)

  • RFC to read file and continue

    Hello,
    I have the following scenario:
    I have a report that needs to work with data saved in a CSV file in another server connected with XI.
    In my report I have to call a function to read de CSV file, wait, and continue when XI gives me the response.
    Is possible that scenaro? How can I built that? My RFC function is just an empty tables parameter that waits to be filled by XI. Now the problem is the XI. How can I read the file synchronous and fill the RFC response?
    Edited by: Marshal Oliveras on Apr 29, 2008 11:48 AM

    Hi,
    no, this is not possible. At least, not w/o further development. You can't use FILE adapter for this (does not support sync processing). What would be possible - develop a web service, which will be called, reads the file and returns it back to the function. So the whole process would look like this:
    You call some function in R/3, this sends request to PI, PI transforms the request and sends it to Web service. Web Service reads the file and returns it back to PI & PI sends this to the calling function.
    Peter
    Edited by: Peter Jarunek on Apr 29, 2008 11:51 AM

  • Why have the tweet and status update boxes disappeared from notification page a werk after updating to iOS 6v

    When i updated to iOS 6 last week i had the tweet and facebook status update boxes on my notification page and have been using them daily but today they have both disappeared and i don't know how to get them back.

    Your issue has already been addressed ad nauseum.  Please search this forum and/or look in the "More Like This" box to your right.

  • Cannot download adobe reader xi and the update of flash player , my computer has the x adobe reader

    cannot download xi adobe reader and the updated flash player , my computer has the x adobe reader - please help

    Hi ritacohen123,
    Please let me know what error you get while downloading and you are using which browser?
    You can try downloading Reader 11 setup from : ftp://ftp.adobe.com/pub/adobe/reader/win/11.x/11.0.02/en_US/
    and you can find the offline flash player installer from : http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html#mai n-pars_header

  • How to read file and output base64 string?

    im having a hard time reading binary file and converting it to base64.
    is there a parameter in extendscript like 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
    You can also refer to the following samples for more examples:
    https://github.com/Adobe-CEP/Samples/tree/master/Flickr
    https://github.com/Adobe-CEP/Samples/tree/master/Collage

  • Read file and store the file into a string

    i want to read the file and copy it to a string.
    i wrote this code but don't know what to do next..
    please help me urgent.....
    File file_to_text = new File("c:\\wtgapp.xml");
    String wtgapp_string=new String();
    try
    BufferedInputStream stream = new BufferedInputStream(new FileInputStream(file_to_text));
    catch (FileNotFoundException file_error)
    JOptionPane.showMessageDialog(null, "FILE READ ERROR", "READ ERROR!",JOptionPane.INFORMATION_MESSAGE );
    System.exit(1);
    }

    BufferedReader reader = new BufferedReader(new FileReader(file_to_text));
    try
    while(reader.readLine() !=)
    wtgapp_string = wtgapp_string+ reader.readLine();
    System.out.println(wtgapp_string);
    i did this..
    but reader.readLine() != null
    didn't work.
    what shoud i write? to go to the end of file
    no it is 16.00pm in here i live in TURKIYE istanbul :)

  • Reading file and dump data into database using BPEL process

    I have to read CSV files and insert data into database.. To achieve this, I have created asynchronous bpel process. Added Filed Adapter and associated it with Receive activity.. Added DB adapter and associated with Invoke activity. Total two receive activity are available in  process, when tried to Test through EM, only first receive activity is completed, and waiting on second receive activity. Please suggest how to proceed with..
    Thanks, Manoj.

    Deepak, thank for your reply.. As per your suggestion I created BPEL composite with
    template "Define Service Later". I followed below steps, please correct me if I am wrong/missing anything. Your help is highly appreciated...
    Step 1-
    Created File adapter and corresponding Receive Activity (checkbox create instance is checked) with input variable.
    Step 2 - Then in composite.xml, dragged the
    web service under "Exposed Services" and linked the web service with Bpel process.
    Step 3 - Opened .bpel file and added the DB adapter with corresponding Invoke activity, created input variable. Web service is created of Type "Service" with existing WSDL(first option aginst WSDL URL).
    and added Assign activity between receive and invoke activities.
    Deployed the composite to server, when triedTest it
    manually through EM, it is promting for input like "subElmArray Size", then I entered value as 1 with corresponding values for two elements and click on Test We Service button.. Ptocess is completing in error. The error is
    Error Message:
    Fault ID
    service:80020
    Fault Time
    Sep 20, 2013 11:09:49 AM
    Non Recoverable System Fault :
    Correlation definition not registered. The correlation set definition for operation Read, process default/FileUpload18!1.0*soa_3feb622a-f47e-4a53-8051-855f0bf93715/FileUpload18, is not registered with the server. The correlation set was not defined in the process. Redeploy the process to the containe

  • Read file and post to MQ

    Hi,
    I have a senario:
    * Read text file from a directory.
    * Post the content to MQ.
    I dont have any schema for the content of the txt file.
    So I used the opaque type in my FileAdapter while reading the text file and posted the data to MQ by using the MQAdapter.
    But since content is opaque, data in the MQ is not understandable.
    So I want to understand , how I can send the text data to MQ so that it can be understood.

    Hi All,
    I found the solution for the error which I was mentioning.
    I had to import below classes to make it work.
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    After importing it my compilation problem is solved.
    Now I have new problem :)
    I have written below code in Java Embedding for the purpose of decoding
    try
    String messagePayload =(String)getVariableData("inputMessage");
    // decode the message
    byte[] decodedBytes = Base64Decoder.decode(messagePayload.getBytes());
    String decoded = new String(decodedBytes);
    setVariableData("tempBase64EncodedData",decoded);
    catch(Exception e)
    addAuditTrailEntry(e.toString());
    But after this if, I am trying to copy message from "tempBase64EncodedData" to any other variable, it is coming as Empty.
    So, my question is
    * Am I doing correct thing to assign the decoded message into variable called "tempBase64EncodedData" ?
    or
    * Decoding iteslef is having some issues ?

  • HRRCF_MDL_CAND_ATT_CREATE - Read file and covert to 'content'

    Hi,
    We are trying to use FM u2018HRRCF_MDL_CAND_ATT_CREATEu2019 to upload attachment for Candidate (Candidate already in E-Recruiting system). This FM has import parameter u2018CONTENTu2019 (Data Type u2018RAWSTRINGu2019).
    I want to know how to read file (File type can be any) from drive and covert into u2018Contentsu2019. Is there any FM to do this?
    Regards,
    ...Naddy

    I'm getting type cpmpatiable error.
    This is my code,
    REPORT  zhr_test_ngo_attachment.
    PARAMETERS: p_cand  TYPE  hrobject DEFAULT '01NA50000305'
              , p_head TYPE rcf_attachment_header
              , p_fname         TYPE  string.
    DATA:   v_record        TYPE  rcf_s_mdl_cand_attachment,
            v_content       TYPE  rcf_attachment_content,
            v_messages      TYPE  bapirettab,
            v_records       TYPE  rcf_t_mdl_cand_attachment,
            v_size          TYPE  i,
            v_string        TYPE  xstring.
    DATA: BEGIN OF xml_tab OCCURS 0,
              raw TYPE x,
           END   OF xml_tab .
    v_record-att_type = '0012'.
    v_record-language = 'E'.
    v_record-att_header = p_head.
    *Get file
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename            = p_fname
        filetype            = 'BIN'
        has_field_separator = ' '
        header_length       = 0
      IMPORTING
        filelength          = v_size
      TABLES
        data_tab            = xml_tab
      EXCEPTIONS
        OTHERS              = 1.
    v_content = xml_tab[].
    CALL FUNCTION 'HRRCF_MDL_CAND_ATT_CREATE'
      EXPORTING
        record        = v_record
        cand_hrobject = p_cand
        content       = v_content
        filename      = p_fname
      IMPORTING
        messages      = v_messages.
    IF sy-subrc <> 0.
      WRITE 'Attachment Error'.
    ENDIF.

  • Trying to use Disc Utility to copy a disc.  What is "unattached disc file"  and status "not mounted"

    Trying to copy video disc.  Messages are "unattached disc" and status "not mounted".  The disc has been recognized by Disc Utility.

    You do not need to run the setup disk...you can configure your router manually.
    As your Internet Service Providor is Cable follow this link
    Steps to find the Mac Address on the vista computer is same as of the XP computer...

  • Read files and folders from a CD

    Hi there,
    I am not sure this is the right forum for my question. Please redirect me if I am in the wrong place.
    I have an AIR app that will be installed from a CD. The client will be changing certain data (like images and video files) regularly and wants to be able to simply write a cd with the new files in a folder and the AIR app install.
    I have searched high ad low for ways to read files from a CD. I could do this if I knew the path, but on each system it is different.
    Is there anything which can tell me what the path to the CD drive is or a way to package AIR so that when it installs it looks for a directory on the CD it is installing from and copies it to the AIR application directory?
    Any help is welcome!
    Thanks in advance,
    Nikki

    Hi - it looks like you can find the CD drive using the getStorageVolumes() method of StorageVolumeInfo:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/Storag eVolumeInfo.html#getStorageVolumes%28%29
    So you'd  iterate through all the storage volumes, and for the ones that are removable (isRemovable property), check for the existence of some file you know will be on your CD (a unique name), and you would then know that is your install CD.
    -rich

Maybe you are looking for

  • Windows Deployment Services and Windows 8.1 Tablet Autorotation Issue

    Hi, I have been trying to deploy a vanilla Windows 8.1 image to Fujitsu Stylistic Q702 Hybrid Tablet using WDS, however this appears to prevent the automatic screen rotation functionality. When installed from the Windows DVD, automatic rotation is av

  • Is there smth like binding layer in another frameworks?

    Hello, Probably not kind of a question to post here. Is there something like binding layers in another Java web frameworks? A feature to bind data to an iterator keeping row currency and master/detail management? Thanks.

  • How to use a Java Thread in a Java Stored Procedure?

    I am working with java stored Procedures but i have a problem when i use threads.While the thread is running all the processes are blocked because the thread is not detatched.I don't know if it is impossible to use Thread in a java stored procedure.i

  • Pixelated jpg image files

    Muse 7.2, OSX 10.9.2 I have inline images and a gallery slideshow on a site.  Some of these images are extremely pixelated on the rendered web page.  All the images were sized in Photoshop to the exact pixel dimensions and saved as  saved-for-web jpe

  • Custom install of Design Premium

    I have CS4 Design Premium installed and it runs perfectly. However I only have need for one or two of the programs and it was suggested on another Adobe forum that it may be possible to custom install Design. I did not notice that option on the origi