Spring MCQ Quiz Hub

Spring Mcq Set 13

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

1. For two transactions T1 and T2, T1 reads a field and then T2 updates the field.




2. For two transactions T1 and T2, T1 reads some rows from a table and then T2 inserts new rows into the table.




3. For two transactions T1 and T2, they both select a row for update, and based on the state of that row, make an update to it.




4. Isolation Levels Supported by Spring:-




5. The exceptions that cause a transaction to roll back or not can be specified by attribute:-




6. Key technology in developing distributed applications, especially multi-tier enterprise applications.




7. Java-based remoting technology that allows two Java applications running in different JVMs to communicate with each other.




8. To expose a service through RMI, you have to create the service interface that extends:-




9. To call the methods on a remote service:-




10. Spring remoting facilities can significantly simplify the RMI usage on both the server and client sides.




11. There are several properties you must configure for an RmiServiceExporter instance:-




12. By default, RmiServiceExporter attempts to look up an RMI registry at localhost port 1099.




13. The Spring support classes facilitate building session beans:-




14. Spring EJB Support Classes for Different Types of EJB:-




15. EJB support classes provide access to the Spring IoC container for you to implement your business logic in POJOs and wrap them with EJB components.




16. OpenEJB 3.1.1 supports:-




17. If you want to expose EJB component for local access within an enterprise application, the preceding two interfaces should extend EJBLocalObject and EJBLocalHome.




18. The ejbCreate() method is the EJB hook for initialization of state, much as a JSR-250 annotated @PostConstruct() method or afterPropertiesSet() method work in Java EE 5 and Spring.




19. To start the OpenEJB container, you first set environment variable:-




20. To use Spring EJB support for your EJB implementation classes, you have to include a few Spring framework JARs:-




21. Interceptor to let Spring configure @Autowired elements on your EJB.




22. A remote stateless session bean requires annotations:-




23. Proxying Spring services with EJB3s, injecting custom resources configured in Spring, or even using Spring to isolate your EJBs from acquiring references to other distributed resources such as a REST endpoint or an RMI endpoint.




24. Annotation which decorates the PostageServiceBean:-




25. The interceptor obtains beans, by default, from a ContextSingletonBeanFactoryLocation.




26. EJB interface is a simple Java interface whose methods don’t throw RemoteException.




27. To declare a JNDI object reference in the Spring IoC container.




28. The default JNDI name for a remote EJB 3.0 component is the EJB class name with Remote as its suffix .




29. You can configure the JNDI details for factory bean in:-




30. Spring framework itself also offers a remoting technology called HTTP Invoker.




31. To expose a Hessian or Burlap service, you have to add the:-




32. For a HessianServiceExporter instance, you have to configure a service object to export and its service interface.




33. By default, BeanNameUrlHandlerMapping is preconfigured for a Spring MVC application.




34. Invoking a Burlap service:-




35. A web service contract is described using :-




36. There are two approaches to developing a web service, depending on whether you define the contract first or last.




37. In contrast, the contract-first approach encourages you to think of the service contract first in terms of :-




38. In some cases, it’s also hard to map an object to XML (e.g., an object graph with cyclic references) because there’s actually an impedance mismatch between an object model and an XML model.




39. Service exporters that can export a bean as a remote service based on the :-




40. Spring comes with a service exporter that can export a bean as a SOAP web service.




41. The standard for deploying web services on the Java EE platform as of Java EE 1.4:-




42. To send objects across the wire, beans need to be encoded using the Java Architecture for XML Binding (JAXB).




43. If you are deploying into a Java EE 5 (or better) container, you may simply create a bean that is annotated with:-




44. f you are using the JAX-RS Reference Implementation, this intermediary step will involve a tool called wsgen.




45. Spring provides a factory that can export beans annotated with:-




46. Exposing a stand-alone SOAP endpoint using the:-




47. Tomcat doesn’t support JAX-WS by itself.




48. CXF represents the consolidation of the Celtix and XFire projects, which each had useful SOAP support.




49. Factory to use our Spring bean as the implementation:-




50. The concept of an endpoint in web services is much like that of a controller in web applications.