Spring MCQ Quiz Hub

Spring Mcq Set 13

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

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





✅ Correct Answer: 2

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





✅ Correct Answer: 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.





✅ Correct Answer: 4

Isolation Levels Supported by Spring:-





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

To call the methods on a remote service:-





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

The Spring support classes facilitate building session beans:-





✅ Correct Answer: 4

Spring EJB Support Classes for Different Types of EJB:-





✅ Correct Answer: 4

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.





✅ Correct Answer: 1

OpenEJB 3.1.1 supports:-





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

A remote stateless session bean requires annotations:-





✅ Correct Answer: 3

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.





✅ Correct Answer: 1

Annotation which decorates the PostageServiceBean:-





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

Invoking a Burlap service:-





✅ Correct Answer: 2

A web service contract is described using :-





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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.





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

Exposing a stand-alone SOAP endpoint using the:-





✅ Correct Answer: 3

Tomcat doesn’t support JAX-WS by itself.





✅ Correct Answer: 1

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





✅ Correct Answer: 1

Factory to use our Spring bean as the implementation:-





✅ Correct Answer: 2

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





✅ Correct Answer: 1