Spring/Spring Mcq Set 13 Sample Test,Sample questions

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

1. True

2.False

3.none

4.all the mentoined


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

1.True

2.False

3.none

4.all the mentoined


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

1.org.springframework.ejb.interceptor.SpringBeanAutowiringInterceptor

2.org.springframework.ejb.interceptor.SpringBeanAutowiring

3.org.springframework.ejb.interceptor.SpringBean

4. none of the mentioned


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

1.Remoting

2.EJB

3.RMI

4.All of the mentioned


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

1.RMI

2.Hessian

3.Burlap

4.All of the mentioned


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

1. True

2.False

3.none

4.all the mentoined


Question:
 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.

1.True

2.False

3.none

4.all the mentoined


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

1. rollback

2.commit

3.serialize

4.None of the mentioned


Question:
A remote stateless session bean requires annotations:-

1.@Remote

2.@Stateless

3. All of the mentioned

4.None of the mentioned


Question:
A web service contract is described using :-

1.Web Services Description Language

2.Web Services Description

3.All of the mentioned

4. none of the mentioned


Question:
Annotation which decorates the PostageServiceBean:-

1. @Interceptors

2.@Autowire

3.@Wire

4.@Mention


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

1.True

2.False

3.none

4.None of the mentioned


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

1. True

2.False

3.none

4.all the mentoined


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

1.True

2. False

3.none

4.all the mentoined


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

1.True

2.False

3.none

4.all the mentoined


Question:
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.

1. True

2.False

3.none

4.all the mentoined


Question:
Exposing a stand-alone SOAP endpoint using the:-

1.SimpleJaxWsServiceExporter

2. JAX-WS

3.All of the mentioned

4.None of the mentioned


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

1.True

2.False

3.none

4.all the mentoined


Question:
Factory to use our Spring bean as the implementation:-

1. jaxws:end

2. jaxws:endpoint

3.all of the mentioned

4.None of the mentioned


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

1. Dirty Read

2.Nonrepeatable read

3.Phantom read

4. Lost Updates


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

1. Dirty Read

2.Nonrepeatable read

3.Phantom read

4.Lost Updates


Question:
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.

1.Dirty Read

2.Nonrepeatable read

3.Phantom read

4.Lost Updates


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

1.javax.jws.WebService

2.javax.jws.WebServiceProvider

3.all of the mentioned

4.None of the mentioned


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

1. XML

2.XML Schema(.xsd)

3. WSDL

4.All of the mentioned


Question:
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.

1.True

2.False

3.none

4.All of the mentioned


Question:
Invoking a Burlap service:-

1.HessianProxyFactoryBean

2.BurlapProxyFactoryBean

3.BurlapProxyFactory

4.BurlapProxy


Question:
Isolation Levels Supported by Spring:-

1.DEFAULT

2.READ COMMITTED

3.READ UNCOMMITTED

4. all of the mentioned


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

1.Burlap

2.EJB

3.RMI

4.All of the mentioned


Question:
OpenEJB 3.1.1 supports:-

1.EJB 2.x components

2.EJB 3.0 and EJB 3.1 components

3. All of the mentioned

4.None of the mentioned


Question:
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.

1.SpringBeanAutowiringInterceptor

2.SpringBeanAutowiring

3.SpringBean

4.SpringBeanInterceptor


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

1.True

2.False

3.all of the mentioned

4.None of the mentioned


Question:
Spring EJB Support Classes for Different Types of EJB:-

1.AbstractStatelessSessionBean

2.AbstractStatefulSessionBean

3.AbstractMessageDrivenBean

4.All of the mentioned


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

1.javax.jws.WebService

2.javax.jws.WebServiceProvider

3.all of the mentioned

4.None of the mentioned


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

1.True

2. False

3.none

4.all the mentoined


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

1.True

2.False

3.none

4.all the mentoined


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

1.True

2.False

3.none

4.all the mentoined


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

1. True

2.False

3.none

4.all the mentoined


Question:
The Spring support classes facilitate building session beans:-

1.stateful session beans (SFSBs)

2.stateless session beans (SLSBs)

3.message-driven beans (MDBs)

4.All of the mentioned


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

1. JAX-RPC

2.JAX

3.RPC

4.None of the mentioned


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

1.service name

2.service interface

3.service object

4. all of the mentioned


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

1.True

2. False

3.none

4.all the mentoined


Question:
To call the methods on a remote service:-

1.java.rmi.Remote

2. java.rmi.RemoteException

3. all of the mentioned

4.None of the mentioned


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

1.JndiObjectFactory

2. JndiObjectFactoryBean

3. JndiObject

4.JndiFactoryBean


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

1.Hessian library

2.Burlap library

3.All of the mentioned

4.None of the mentioned


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

1.java.rmi.Remote

2.java.rmi.RemoteException

3.all of the mentioned

4.None of the mentioned


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

1.True

2.False

3.none

4.all the mentoined


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

1.EJB_HOME

2.OPENEJB_HOME

3.Bashrc

4.None of the mentioned


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

1.spring-beans

2.spring-core

3. spring-context

4.all of the mentioned


Question:
Tomcat doesn’t support JAX-WS by itself.

1.True

2.False

3.none

4.all the mentoined


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

1.jndiEnvironment

2. jndiName

3.all of the mentioned

4.none of the mentioned


More MCQS

  1. Spring Mcq Set 1
  2. Spring Mcq Set 2
  3. Spring Mcq Set 3
  4. Spring Mcq Set 4
  5. Spring Mcq Set 5
  6. Spring Mcq Set 6
  7. Spring Mcq Set 7
  8. Spring Mcq Set 8
  9. Spring Mcq Set 9
  10. Spring Mcq Set 10
  11. Spring Mcq Set 11
  12. Spring Mcq Set 12
  13. Spring Mcq Set 13
  14. Spring Mcq Set 14
  15. Spring Mcq Set 15
  16. Spring Mcq Set 16
  17. Spring Mcq Set 17
  18. Spring Mcq Set 18
  19. Spring Mcq Set 19
  20. Spring Mcq Questions
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!