Home / CSE MCQs / Spring MCQs :: Spring Data Access, Transaction Management, EJB

CSE MCQs :: Spring MCQs

  1. To expose a service through RMI, you have to create the service interface that extends:-
  2. A.
    java.rmi.Remote
    B.
    java.rmi.RemoteException
    C.
    all of the mentioned
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  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.
  4. A.
    SpringBeanAutowiringInterceptor
    B.
    SpringBeanAutowiring
    C.
    SpringBean
    D.
    SpringBeanInterceptor

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. DAO methods require access to the session factory, which can be injected:-
  6. A.
    a setter method
    B.
    constructor argument
    C.
    none of the mentioned
    D.
    all of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. PreparedStatementSetter, as its name indicates, create a PreparedStatement object on this connectionthe parameter as well as binding task of the overall update process.
  8. A.
    True
    B.
    False
    C.
    Error
    D.
    None of them

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Interface whose instances can be obtained from a SessionFactory instance.
  10. A.
    Session
    B.
    Session Factory
    C.
    All of the mentioned
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Mode which Derby prefers to run in:-
  12. A.
    embedded
    B.
    client/server
    C.
    all of the mentioned
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Transaction's propagation behavior are defined in the:-
  14. A.
    org.springframework.transaction.Transaction
    B.
    org.springframework.transaction.TransactionDefinition
    C.
    all of the mentioned
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. In contrast, the contract-first approach encourages you to think of the service contract first in terms of :-
  16. A.
    XML
    B.
    XML Schema(.xsd)
    C.
    WSDL
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. To access a database running on the Derby server, you have to add:-
  18. A.
    Derby client library
    B.
    Tomcat client library
    C.
    All of the mentioned
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. SimpleJdbcTemplate offers a convenient batch update method in the form of:-
  20. A.
    Vector
    B.
    Set
    C.
    Map
    D.
    List

    View Answer

    Workspace

    Discuss Discuss in Forum