Sail E0 Webinar

MCQs

Total Questions : 11 | Page 1 of 2 pages
Question 1. Spring Integration provides the ability to catch exceptions and send them to an error channel of your choosing. By default, it's a global channel called :-
  1.    error
  2.    exceptionChannel
  3.    exception
  4.    errorChannel
 Discuss Question
Answer: Option D. -> errorChannel


You can have components subscribe to messages from this channel to override the exception handling behavior.


Question 2. Spring Batch provides a mechanism to offload processing to another process.
  1.    chunking
  2.    remote chunking
  3.    remote
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> remote chunking


Spring Batch provides a mechanism to offload processing to another process. This feature, called remote chunking, is new in Spring Batch 2.x.


Question 3. There are several types of messages defined in the JMS API, including:-
  1.    TextMessage
  2.    MapMessage
  3.    BytesMessage
  4.    All of the mentioned
 Discuss Question
Answer: Option D. -> All of the mentioned


There are several types of messages defined in the JMS API, including TextMessage, MapMessage, BytesMessage, ObjectMessage, and StreamMessage.


Question 4. The configuration starts with the inboundHelloJMSMessageChannel channel, which tells Spring Integration what to name the point-to-point connection from the message queue to the:-
  1.    service-activator
  2.    service
  3.    all of the mentioned
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> service-activator


You typically define a new channel for every point-to-point connection.


Question 5. You can implement the interface to send e-mail notifications in case of errors.
  1.    Notify
  2.    Error
  3.    ErrorNotifier
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> ErrorNotifier


You can implement the ErrorNotifier interface to send e-mail notifications in case of errors.


Question 6. Method, all files in the source directory will be replicated to the destination directory.
  1.    replicate
  2.    copy
  3.    rep
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> replicate


Each time you call the replicate() method, all files in the source directory will be replicated to the destination directory. To avoid unexpected problems caused by concurrent replication, you declare this method as synchronized.


Question 7. Spring provides several types of message listener containers:-
  1.    SimpleMessageListenerContainer
  2.    DefaultMessageListenerContainer
  3.    All of the mentioned
  4.    None of the mentioned
 Discuss Question
Answer: Option C. -> All of the mentioned


Spring provides several types of message listener containers for you to choose from in the org.springframework.jms.listener package, of which SimpleMessageListenerContainer and DefaultMessageListenerContainer are the most commonly used.


Question 8. Serving to abstract away the functionality of other components in an abbreviated interface to provide courser functionality.
  1.    facade
  2.    façade
  3.    gateway
  4.    none of the mentioned
 Discuss Question
Answer: Option B. -> façade


You might use a façade to build an interface oriented around vacation planning that in turn abstracts away the minutiae of using a car rental, hotel reservation, and airline reservation system.


Question 9. There are some convenient default routers available to fill common needs:-
  1.    PayloadTypeRouter
  2.    PayloadType
  3.    Payload
  4.    None of the mentioned
 Discuss Question
Answer: Option A. -> PayloadTypeRouter


There are some convenient default routers available to fill common needs, such as payload-type“based routing (PayloadTypeRouter) and routing to a group or list of channels (RecipientListRouter).


Question 10. Element to configure this for the step:-
  1.    no-rollback-exception-classes
  2.    no-rollback-exception
  3.    no-rollback
  4.    none of the mentioned
 Discuss Question
Answer: Option A. -> no-rollback-exception-classes


You can use the no-rollback-exception-classes element to configure this for the step. The value is a list of Exception classes that should not cause the transaction to roll back.


Latest Videos

Latest Test Papers