Spring MCQ Quiz Hub

Spring Mcq Set 14

Choose a topic to test your knowledge and improve your Spring skills

Spring-WS provides various abstract endpoint classes for you to process the request.





✅ Correct Answer: 1

Endpoint Classes for DOM:-





✅ Correct Answer: 1

Endpoint Classes for JDOM:-





✅ Correct Answer: 2

Endpoint Classes for dom4j:-





✅ Correct Answer: 3

Endpoint Classes for XOM:-





✅ Correct Answer: 4

Endpoint Classes for SAX:-





✅ Correct Answer: 2

Endpoint Classes for Event-based StAX:-





✅ Correct Answer: 4

Endpoint Classes for Streaming StAX :-





✅ Correct Answer: 3

Endpoint Classes for XML marshalling :-





✅ Correct Answer: 4

Endpoint Classes for XML marshalling :-





✅ Correct Answer: 4

If you need to get access to the entire SOAP message, you should write an endpoint class by implementing:-





✅ Correct Answer: 1

You can create a dom4j endpoint by extending the:-





✅ Correct Answer: 1

In this method, you can access the request XML element, whose type is org.dom4j.Element, and the response document, whose type is org.dom4j.Document, as method arguments.





✅ Correct Answer: 3

Web services can be invoked through the core template class:-





✅ Correct Answer: 1

WebServiceTemplate provides a sendSourceAndReceiveToResult() method that accepts arguments:-





✅ Correct Answer: 3

There are two main options for scheduling tasks on the Java platform:-





✅ Correct Answer: 3

Spring supports JMX by allowing you to export any beans in its IoC container as model MBeans.





✅ Correct Answer: 1

Connectors to expose your MBeans for remote access over a specific protocol by using a factory bean.





✅ Correct Answer: 3

Spring can also detect and export your MBeans automatically from beans declared in the IoC container and annotated with JMX-specific annotations defined by Spring.





✅ Correct Answer: 1

Method, all files in the source directory will be replicated to the destination directory.





✅ Correct Answer: 1

VM argument to enable local monitoring of this application.





✅ Correct Answer: 1

However, in an environment with no MBean server available, you have to create one explicitly using:-





✅ Correct Answer: 1

Spring allows you to create a JMX connector server through:-





✅ Correct Answer: 1

? should be replaced by:- <beans ...> ... <bean id="rmiRegistry" class="org.springframework.remoting.rmi.RmiRegistryFactoryBean" /> <bean id="connectorServer" class="org.springframework.jmx.support.ConnectorServerFactoryBean" depends-on="rmiRegistry"> <property name="serviceUrl" value=? /> </bean> </beans>





✅ Correct Answer: 1

If no RMI registry has been created externally, you should create one by using:-





✅ Correct Answer: 2

The simplest MBean assembler in Spring is, which allows you to specify the names of the methods to export.





✅ Correct Answer: 1

Spring allows your beans to publish JMX notifications through:-





✅ Correct Answer: 1

The core interface of Spring email support is:-





✅ Correct Answer: 1

The JavaMailSender interface is a subinterface of MailSender that includes specialized JavaMail features:-





✅ Correct Answer: 1

Before you implement the ErroNotifier interface in this way, you may need a local email server that supports the Simple Mail Transfer Protocol (SMTP) for testing purposes.





✅ Correct Answer: 1

You can implement the interface to send email notifications in case of errors.





✅ Correct Answer: 3

You send the email by making a call to:-





✅ Correct Answer: 1

The default port used by JavaMailSenderImpl is the:-





✅ Correct Answer: 4

If you have a JavaMail session configured in your Java EE application server, you can first look it up with the help of:-





✅ Correct Answer: 2

MIME is supported by JavaMail through the:-





✅ Correct Answer: 3

The JavaMailSenderImpl instance you injected does implement this interface.





✅ Correct Answer: 1

Quartz supports several types of triggers:-





✅ Correct Answer: 3

SimpleTrigger allows you to set trigger properties:-





✅ Correct Answer: 4

CronTrigger accepts a Unix cron expression for you to specify the times to run your job.





✅ Correct Answer: 1

Spring also offers MethodInvokingJobDetailFactoryBean for you to define a job that executes a single method of a particular object.





✅ Correct Answer: 1

You can configure a Quartz SimpleTrigger object in Spring bean configuration file through:-





✅ Correct Answer: 2

Spring 3.0 debuts new support for configuring:-





✅ Correct Answer: 3

Template which can send and receive JMS messages with much less code





✅ Correct Answer: 1

The template handles the boilerplate tasks for you and also converts the JMS API JMSException hierarchy into Spring runtime exception:-





✅ Correct Answer: 2

To address different JMS APIs, Spring provides :-





✅ Correct Answer: 3

Before you can send and receive JMS messages, you need to install a JMS message broker:-





✅ Correct Answer: 4

There are several types of messages defined in the JMS API, including:-





✅ Correct Answer: 4

To send a JMS message with this template, you simply call:-





✅ Correct Answer: 1

The MessageCreator interface declares method:-





✅ Correct Answer: 1

A JMS template helps you to obtain and release the JMS connection and session.





✅ Correct Answer: 1