R4RIN
MCQS
Spring MCQ Quiz Hub
Spring Mcq Set 14
Choose a topic to test your knowledge and improve your Spring skills
1. Spring-WS provides various abstract endpoint classes for you to process the request.
org.springframework.ws.server.endpoint
org.springframework.ws.server
org.springframework.*
None of the mentioned
2. Endpoint Classes for DOM:-
AbstractDomPayloadEndpoint
AbstractJDomPayloadEndpoint
AbstractDom4jPayloadEndpoint
AbstractXomPayloadEndpoint
3. Endpoint Classes for JDOM:-
AbstractDomPayloadEndpoint
AbstractJDomPayloadEndpoint
AbstractDom4jPayloadEndpoint
AbstractXomPayloadEndpoint
4. Endpoint Classes for dom4j:-
AbstractDomPayloadEndpoint
AbstractJDomPayloadEndpoint
AbstractDom4jPayloadEndpoint
AbstractXomPayloadEndpoint
5. Endpoint Classes for XOM:-
AbstractDomPayloadEndpoint
AbstractJDomPayloadEndpoint
AbstractDom4jPayloadEndpoint
AbstractXomPayloadEndpoint
6. Endpoint Classes for SAX:-
AbstractDomPayloadEndpoint
AbstractSaxPayloadEndpoint
AbstractDom4jPayloadEndpoint
AbstractXomPayloadEndpoint
7. Endpoint Classes for Event-based StAX:-
AbstractDomPayloadEndpoint
AbstractSaxPayloadEndpoint
AbstractDom4jPayloadEndpoint
AbstractStaxEventPayloadEndpoint
8. Endpoint Classes for Streaming StAX :-
AbstractDomPayloadEndpoint
AbstractSaxPayloadEndpoint
AbstractStaxStreamPayloadEndpoint
AbstractStaxEventPayloadEndpoint
9. Endpoint Classes for XML marshalling :-
AbstractDomPayloadEndpoint
AbstractSaxPayloadEndpoint
AbstractStaxStreamPayloadEndpoint
AbstractMarshallingPayloadEndpoint
10. Endpoint Classes for XML marshalling :-
AbstractDomPayloadEndpoint
AbstractSaxPayloadEndpoint
AbstractStaxStreamPayloadEndpoint
AbstractMarshallingPayloadEndpoint
11. If you need to get access to the entire SOAP message, you should write an endpoint class by implementing:-
org.springframework.ws.server.endpoint.MessageEndpoint
org.springframework.ws
org.springframework.ws.server.endpoint
All of the mentioned
12. You can create a dom4j endpoint by extending the:-
AbstractDom4jPayloadEndpoint
AbstractDom4jPayload
AbstractDom4jEndpoint
None of the mentioned
13. 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.
invoke
invokeInterval
invokeInternal
None of the mentioned
14. Web services can be invoked through the core template class:-
org.springframework.ws.client.core.WebServiceTemplate
JDBC Template
All of the mentioned
None of the mentioned
15. WebServiceTemplate provides a sendSourceAndReceiveToResult() method that accepts arguments:-
java.xml.transform.Source
java.xml.transform.Result
all of the mentioned
None of the mentioned
16. There are two main options for scheduling tasks on the Java platform:-
JDK Timer
Quartz Scheduler
All of the mentioned
None of the mentioned
17. Spring supports JMX by allowing you to export any beans in its IoC container as model MBeans.
True
False
none
all the mentoined
18. Connectors to expose your MBeans for remote access over a specific protocol by using a factory bean.
MBeanExporter
JSR-160
All of the mentioned
None of the mentioned
19. 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.
True
False
none
all the mentoined
20. Method, all files in the source directory will be replicated to the destination directory.
replicate
copy
rep
none of the mentioned
21. VM argument to enable local monitoring of this application.
-Dcom.sun.management.jmxremote
-Dcom.sun.management
-Dcom.sun.management.jmx
None of the mentioned
22. However, in an environment with no MBean server available, you have to create one explicitly using:-
MBeanServerFactoryBean
MBeanServerFactory
All of the mentioned
None of the mentioned
23. Spring allows you to create a JMX connector server through:-
ConnectorServerFactoryBean
ConnectorServer
ConnectorServerFactory
all of the mentioned
24. ? 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>
service:jmx:rmi://localhost/jndi/rmi://localhost:1099/replicator
service:jmx:rmi://localhost/jndi/rmi://localhost:1099/
service:jmx:rmi://localhost/jndi//localhost:1099/replicator
None of the mentioned
25. If no RMI registry has been created externally, you should create one by using:-
RmiRegistryFactory
RmiRegistryFactoryBean
RmiRegistry
RmiRegister
26. The simplest MBean assembler in Spring is, which allows you to specify the names of the methods to export.
MethodNameBasedMBeanInfoAssembler
MethodNameBasedMBeanInfo
MethodNameBasedMBean
MethodNameBasedInfoAssembler
27. Spring allows your beans to publish JMX notifications through:-
NotificationPublisher
Notification
Notify
all of the mentioned
28. The core interface of Spring email support is:-
MailSender
EMail
All of the mentioned
None of the mentioned
29. The JavaMailSender interface is a subinterface of MailSender that includes specialized JavaMail features:-
Multipurpose Internet Mail Extensions
Multipurpose Internet Mail
Multipurpose Internet Extensions
None of the mentioned
30. 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.
True
False
none
all the mentoined
31. You can implement the interface to send email notifications in case of errors.
Notify
Error
ErrorNotifier
None of the mentioned
32. You send the email by making a call to:-
Transport.send()
Transport.sendTo()
All of the mentioned
None of the mentioned
33. The default port used by JavaMailSenderImpl is the:-
SMTP port 24
SMTP port 22
SSH port 22
SMTP port 25
34. If you have a JavaMail session configured in your Java EE application server, you can first look it up with the help of:-
JndiObjectFactory
JndiObjectFactoryBean
JndiObject
None of the mentioned
35. MIME is supported by JavaMail through the:-
javax.mail.internet.Mime
javax.mail.internet.Message
javax.mail.internet.MimeMessage
javax.mail.internet.Mail
36. The JavaMailSenderImpl instance you injected does implement this interface.
True
False
none
all the mentoined
37. Quartz supports several types of triggers:-
SimpleTrigger
CronTrigger
All of the mentioned
None of the mentioned
38. SimpleTrigger allows you to set trigger properties:-
start time
end time
repeat interval
All of the mentioned
39. CronTrigger accepts a Unix cron expression for you to specify the times to run your job.
True
False
none
all the mentoined
40. Spring also offers MethodInvokingJobDetailFactoryBean for you to define a job that executes a single method of a particular object.
True
False
none
all the mentoined
41. You can configure a Quartz SimpleTrigger object in Spring bean configuration file through:-
SimpleTrigger
SimpleTriggerBean
All of the mentioned
None of the mentioned
42. Spring 3.0 debuts new support for configuring:-
TaskExecutors
TaskSchedulers
All of the mentioned
None of the mentioned
43. Template which can send and receive JMS messages with much less code
JmsTemplate
EMail
all of the mentioned
None of the mentioned
44. The template handles the boilerplate tasks for you and also converts the JMS API JMSException hierarchy into Spring runtime exception:-
org.springframework.jms.Jms
org.springframework.jms.JmsException
org.springframework.jms.JmsTemplate
none of the mentioned
45. To address different JMS APIs, Spring provides :-
JmsTemplate
JmsTemplate102
All of the mentioned
None of the mentioned
46. Before you can send and receive JMS messages, you need to install a JMS message broker:-
Apache ActiveM
Apache Active
Apache MQ
Apache ActiveMQ
47. There are several types of messages defined in the JMS API, including:-
TextMessage
MapMessage
BytesMessage
all of the mentioned
48. To send a JMS message with this template, you simply call:-
send
sendTo
all of the mentioned
None of the mentioned
49. The MessageCreator interface declares method:-
createMessage()
create()
createMsg()
none of the mentioned
50. A JMS template helps you to obtain and release the JMS connection and session.
True
False
none
all the mentoined
Submit