adplus-dvertising
frame-decoration

Question

To load the contents of a properties file (batch.properties) whose values you use to configure the data source.

a.

PropertyPlaceholder

b.

PropertyPlaceholderConfigurer

c.

Property

d.

PropertyConfigurer

Posted under Java Spring Framework

Answer: (b).PropertyPlaceholderConfigurer

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. To load the contents of a properties file (batch.properties) whose values you use to configure the data source.

Similar Questions

Discover Related MCQs

Q. MapJobRegistry instance. This is critical—it is the central store for information regarding a given Job.

Q. SimpleJobLauncher, whose sole purpose is to give you a mechanism to launch batch jobs, where a “job” in this case is our batch solution.

Q. Spring Batch models solutions using XML schema.

Q. However, it’s important to wear another hat, that of a DBA, when writing applications.

Q. Indeed, a step could be considered the smallest unit of work for a job. Input (what’s read) is passed to the Step and potentially processed; then output (what’s written) is created from the step.

Q. Attribute to configure how many items will be processed before the transaction is committed all the input is sent to the writer.

Q. Class which delegates the task of delimiting fields and records within a file to a LineMapper, which in turn delegates the task of identifying the fields within that record, to LineTokenizer.

Q. The names and values for the named parameters are being created by the bean configured for the itemSqlParameterSourceProvider property, an instance of the interface

Q. There’s support for writing JMS:-

Q. The processor attribute on the chunk element expects a reference to a bean of the interface:-

Q. Spring Batch provides a convenience class, CompositeItemProcessor, which forwards the output of the filter to the input of the successive filter.

Q. If the preceding job was run on a batch with a 100 rows, each item was read and passed through the processor, and it found 10 items invalid (it returned null 10 times), the value for the filter_count column would be:-

Q. Transaction capabilities are built on top of the first class support already provided by the core Spring framework.

Q. Spring core framework provides first-class support for transactions.

Q. The batch.xml file establishes a:-

Q. Spring Batch will, by default, try to pluck the:-

Q. Spring Batch excels in the robustness it surfaces as simple configuration options for the edge and failure cases.

Q. Element to configure this for the step:-

Q. You want to work with a resource that may fail when you try to read from or write to it.

Q. Some invocations will fail but may be retried with some likelihood of success in a transactional scenario.