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.




2. Endpoint Classes for DOM:-




3. Endpoint Classes for JDOM:-




4. Endpoint Classes for dom4j:-




5. Endpoint Classes for XOM:-




6. Endpoint Classes for SAX:-




7. Endpoint Classes for Event-based StAX:-




8. Endpoint Classes for Streaming StAX :-




9. Endpoint Classes for XML marshalling :-




10. Endpoint Classes for XML marshalling :-




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




12. You can create a dom4j endpoint by extending the:-




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.




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




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




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




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




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




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.




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




21. VM argument to enable local monitoring of this application.




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




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




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>




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




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




27. Spring allows your beans to publish JMX notifications through:-




28. The core interface of Spring email support is:-




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




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.




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




32. You send the email by making a call to:-




33. The default port used by JavaMailSenderImpl is the:-




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




35. MIME is supported by JavaMail through the:-




36. The JavaMailSenderImpl instance you injected does implement this interface.




37. Quartz supports several types of triggers:-




38. SimpleTrigger allows you to set trigger properties:-




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




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




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




42. Spring 3.0 debuts new support for configuring:-




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




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




45. To address different JMS APIs, Spring provides :-




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




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




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




49. The MessageCreator interface declares method:-




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