0% found this document useful (0 votes)
62 views1 page

EJB Sample Questions

EJB QL is a query language for navigating between enterprise beans and related objects stored with container-managed persistence. Session beans use the getUserTransaction() method through EJBContext to access the UserTransaction object in container-managed transactions but not bean-managed transactions. The NOT_MANDATORY and NOT_SUPPORTED transaction types are invalid for declarative transactions.

Uploaded by

Amit Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views1 page

EJB Sample Questions

EJB QL is a query language for navigating between enterprise beans and related objects stored with container-managed persistence. Session beans use the getUserTransaction() method through EJBContext to access the UserTransaction object in container-managed transactions but not bean-managed transactions. The NOT_MANDATORY and NOT_SUPPORTED transaction types are invalid for declarative transactions.

Uploaded by

Amit Sharma
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

EJB QL is a Query Language provided for navigation across a network of

enterprise beans and dependent objects defined by means of container


managed persistence. 

a. True
b. False

Which case of a session bean obtains the UserTransaction object via the
EJBContext using the getUserTransaction() method in EJB transaction
management? 

a. Bean-managed transactions 
b. Container-managed transactions
c. Both A & B
d. None of the above

 Which of the following Declarative Transaction types is/are not valid

a) MANDATORY
b) REQUIRED
c) REQUIRES_NEW
d) NOT_MANDATORY
e) SUPPORTS
f) NOT_SUPPORTED
g) NEVER

You might also like