MCQOPTIONS
Bookmark
Saved Bookmarks
→
Spring
→
Managing Web Flows
→
However, it’s important to wear another hat, th..
1.
However, it’s important to wear another hat, that of a DBA, when writing applications.
A.
True
B.
False
Answer» B. False
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
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.a) org.springframework.batch.item.file.FlatFileItemReaderb) org.springframework.batch.item.file.FlatFilec) org.springframework.batch.item.file.FlatFileItemd) org.springframework.batch.item.file.FileItemReaderAnswer: aExplanation: The FlatFileItemReader also declares a fieldSetMapper attribute that requires an implementation of FieldSetMapper. 11. The names and values for the named parameters are being created by the bean configured for the itemSqlParameterSourceProvider property, an instance of the interfacea) BeanPropertyItemSqlParameterSourceProviderb) BeanPropertyItemSqlParameterSourcec) BeanPropertyItemSqlParameterd) All of the mentionedAnswer: aExplanation: BeanPropertyItemSqlParameterSourceProvider, whose sole job it is to take JavaBean properties and make them available as named parameters corresponding to the property name on the JavaBean. 12. There’s support for writing JMS:-a) JmsItemWriterb) JpaItemWriterc) JdbcBatchItemWriterd) All of the mentionedAnswer: dExplanation: There’s support for writing JMS (JmsItemWriter), JPA (JpaItemWriter), JDBC (JdbcBatchItemWriter), Files (FlatFileItemWriter), iBatis (IbatisBatchItemWriter), Hibernate (HibernateItemWriter), and more. 13. The processor attribute on the chunk element expects a reference to a bean of the interface:-a) org.springframework.batch.item.Itemb) org.springframework.batch.itemc) org.springframework.batch.item.ItemProcessord) none of the mentionedAnswer: cExplanation: The processor attribute on the chunk element expects a reference to a bean of the interface org.springframework.batch.item.ItemProcessor. 14. Spring Batch provides a convenience class, CompositeItemProcessor, which forwards the output of the filter to the input of the successive filter.a) Trueb) FalseAnswer: aExplanation: In this way, you can write many, singly focused ItemProcessors and then reuse them and chain them as necessary.15. 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:-
Attribute to configure how many items will be processed before the transaction is committed all the input is sent to the writer.
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.
However, it’s important to wear another hat, that of a DBA, when writing applications.
Spring Batch models solutions using XML schema.
SimpleJobLauncher, whose sole purpose is to give you a mechanism to launch batch jobs, where a “job” in this case is our batch solution.
MapJobRegistry instance. This is critical—it is the central store for information regarding a given Job.
To load the contents of a properties file (batch.properties) whose values you use to configure the data source.
There’s only one really useful implementation of the JobRepository interface, which stores information about the state of the batch processes in a database.
Spring Batch provides a lot of flexibility and guarantees to your application, but it cannot work in a vacuum. To do its work:-
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply