4 Replies Latest reply: Aug 10, 2012 1:16 AM by 947645 RSS

    File  Adapter :- Handling Large documents

    947645
      Hi

      I am currently working on File Adapter. Reading large documents and writing the same in to some other file location.

      I came across the following techniques:

      1. Scalable DOM
      2. File Chunk Read.

      Can any one help me the exact use cases of the above mentioned techniques in File Adapter.

      Thanks
        • 1. Re: File  Adapter :- Handling Large documents
          Arik
          Hi,

          Look at:
          http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_file.htm#BABCHCEI
          http://docs.oracle.com/cd/E21764_01/integration.1111/e10231/adptr_file.htm#BABJFCBH

          Arik
          • 2. Re: File  Adapter :- Handling Large documents
            Amy Childress-Oracle
            1. Scalable DOM - is used to move/copy large files intact.
            2. File Chunk Read - is used to process large documents (it uses a while loop).

            When you're using File ChunkRead, you can take a large document with many elements and for each of those elements, perform some operations.

            -----------Documentation-----------
            **Oracle File Adapter Scalable DOM
            http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#BABCHCEI

            This use case demonstrates how a scalable DOM process uses the streaming feature to copy/move huge files from one directory to another.
            The streaming option is not supported with DB2 hydration store.
            ...
            You can obtain the Adapters-103FileAdapterScalableDOM sample by accessing the Oracle SOA Sample Code site.

            **Oracle File Adapter ChunkedRead
            http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#BABJFCBH

            This is an Oracle File Adapter feature that uses an invoke activity within a while loop to process the target file. This feature enables you to process arbitrarily large files.
            ...
            You can obtain the Adapters-106FileAdapterChunkedRead sample by accessing the Oracle SOA Sample Code site.

            -------------------------------------

            An additional reference that may be helpful is, Handling Binary Content and Large Documents in Oracle SOA Suite 11g
            http://www.oracle.com/technetwork/middleware/soasuite/learnmore/binarycontentlargepayloadhandling-1705355.pdf
            • 3. Re: File  Adapter :- Handling Large documents
              947645
              Hi,

              Thanks for your quick reply.
              As per your reply on Scalable DOM and FileChunk Read : I am still confused to differ their individual functionalities.

              For Ex:- I can handle large documents using either Scalable DOM or FileChunkRead.
              I want to know the use case where we can use ScalableDOM to handle large documents and the use case where we can use File Chunk Read.

              I dont think so using while loop in File chunk read is its functionality. I can use the same logic(while loop) while handling large documents using Scalable DOM.

              Kindly describe the functionalities of above mentioened techniques separately so that I can understand the functional use cases of them.

              correct me If I am wrong.

              Thanks.
              • 4. Re: File  Adapter :- Handling Large documents
                947645
                Hi Arik ,

                Thanks for the quick reply, also for the links !!!

                I have gone through the links mentioned by you. I do have some questions about the functionalities of ScalableDOM and File Chunk Read.

                If you do have any use case on the above mentioned , Please share it so that I can get better understanding on "When Scalable DOM can be used" and "When File Chunk Read can ve used"

                Link talks about moving large documents from one file directory to another. What I am confused about is : Both Scalable DOM and FileChunk Read can perform , where do they differ in implementing such scenarios from functional point of view.


                Thanks!!