Home / CSE MCQs / EJB MCQs ::

CSE MCQs :: EJB MCQs

  1. Which of the following annotation is used to specify or inject a dependency as ejb instance into another ejb?
  2. A.
    javax.ejb.Stateless
    B.
    javax.ejb.Stateful
    C.
    javax.ejb.MessageDrivenBean
    D.
    javax.ejb.EJB

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The EJB specification architecture does NOT define
  4. A.
    transactional components
    B.
    client side security and encryption
    C.
    distributed object components
    D.
    server-side components

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following is true?
  6. A.
    Preserving of any state across method calls does not performed by Stateless session beans
    B.
    Multiple users can access Stateful session beans at the same time
    C.
    Both are correct
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which EJB container must provide an implementation of Java Naming and Directory Interface (JNDI) API to provide naming services for EJB clients and components?
  8. A.
    Transaction support
    B.
    Persistence support
    C.
    Naming support
    D.
    All mentioned above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which statement about session beans is true?
  10. A.
    In both stateless and statefull session classes, the bean provider must write the method public void remove()
    B.
    The method << remove >> in the component interface can be accessed only by the remote clients
    C.
    The bean's handle must be provided by the client, in order to ask the EJBHome for removing a session bean
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which case of a session bean obtains the UserTransaction object via the EJBContext using the getUserTransaction() method in EJB transaction management?
  12. A.
    Bean-managed transactions
    B.
    Container-managed transactions
    C.
    Both A & B
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The Spring support classes facilitate building session beans
  14. A.
    stateful session beans (SFSBs)
    B.
    stateless session beans (SLSBs)
    C.
    message-driven beans (MDBs)
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. What happens when you pass a serialized object as an argument or return value that doesn't exist either in the Client or the Server?
  16. A.
    Nothing will happpen
    B.
    An error will occur
    C.
    A run time exception is produced
    D.
    None of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. An different programming language like C ,C++ etc.
  18. A.
    1,2
    B.
    1
    C.
    2
    D.
    None

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Abbreviate the term JMS?
  20. A.
    Java Message Service
    B.
    Java Monitor Service
    C.
    Java Message Session
    D.
    Java Monitor Session

    View Answer

    Workspace

    Discuss Discuss in Forum