nerdexam
Oracle

1Z0-478 · Question #63

You have modeled a composite with a one-way Mediator component that is exposed via an inbound file adapter service. How do you configure the inbound file adapter to read local files in ascending…

The correct answer is A. By setting the SingleThreadModel activationsSpec property to true and configuring the ListSorter. When files must be processed by Oracle File and FTP Adapters in a particular order, you must configure the sorting parameters. For example, you can configure the sorting parameters for Oracle File and FTP Adapters to process files in ascending or descending order by time…

Adapters

Question

You have modeled a composite with a one-way Mediator component that is exposed via an inbound file adapter service. How do you configure the inbound file adapter to read local files in ascending order of their lastModifiedTime?

Options

  • ABy setting the SingleThreadModel activationsSpec property to true and configuring the ListSorter
  • BBy not making any configuration changes because, by default, the adapter reads input files in
  • CBy setting the ThreadCount activationSpec property to 0 and configuring the List Sorter
  • DBy setting the ThreadCount activatioSpec property to ?1 and configuring the ListSorter

How the community answered

(50 responses)
  • A
    76% (38)
  • B
    6% (3)
  • C
    14% (7)
  • D
    4% (2)

Explanation

When files must be processed by Oracle File and FTP Adapters in a particular order, you must configure the sorting parameters. For example, you can configure the sorting parameters for Oracle File and FTP Adapters to process files in ascending or descending order by time stamps. You must meet the following prerequisites for sorting scenarios of Oracle File and FTP Adapters: Use a synchronous operation Add the following property to the inbound JCA file: <property name="ListSorter" value="oracle.tip.adapter.file.inbound.listing.TimestampSorterAscending"/> <property name="SingleThreadModel" value="true"/>

Topics

#file adapter#ListSorter#SingleThreadModel#lastModifiedTime ordering

Community Discussion

No community discussion yet for this question.

Full 1Z0-478 Practice