EJB 2 - Intermed

Print the objectives

Take the exam   Take a beta test

This EJB exam requires the ability to program, deploy and call session and entity beans in a transactional context. EJB v3 is such different technology that it will be covered in other exams. This exam includes session and entity beans, transactions, security and exception notion.
  Released  Beta  Frozen  

Entity Beans

 
 

EntityContext  2 questions

From a list of behaviors, match them with the appropriate EntityContext method responsible for that behavior.
0 34 2

EJB-QL  3 questions

Identify correct and incorrect statements or examples about an entity bean's primary key and object identity.
Identify correct and incorrect syntax for an EJB QL query including the SELECT, FROM, and WHERE clause.
Identify correct and incorrect statements or examples about the purpose and use of EJB QL.
Identify correct and incorrect conditional expressions, between expression, in expressions, like expressions, and comparison expressions.
0 71 1

Session Beans

 
 

Responsibilities  3 questions

Identify the use, benefits, and characteristics of Stateless Session Beans for version 2 of the EJB specification. This includes best practices for using Stateful Session Beans.
Identify correct and incorrect statements or examples about session beans, including conversational state, the SessionBean interface, and create methods.
Identify the use of, and the behavior of, the ejbPassivate method in a session bean, including the responsibilities of both the container and the bean provider.
Match correct descriptions about purpose and function with which session bean type they apply to: stateless, stateful, or both.
Given a list of responsibilities related to session beans, identify those which are the responsibility of the session bean provider, and those which are the responsibility of the EJB container provider.
Given a list of requirements, identify those which are the requirements for a session bean class, remote component interface, remote home interface, create methods, business methods, local component interface, local home interface.
0 53 2

Session Management  2 questions

Identify the interface and method for each of the following:
  • Retrieve the session bean's remote home interface
  • Retrieve the session bean's local component interface
  • Determine if the session bean's caller has a particular role.
0 17 1

Transaction Management and Passivation  2 questions

Allow the instance to mark the current transaction as a rollback
Retrieve the UserTransaction interface
Prepare the instance for re-use following passivation
Release resources prior to removal
Identify the invoker of the bean instance's component interface
Be notified that a new transaction has begun, be notified that the current transaction has completed
0 44 0

Transaction  3 questions

Identify EJB v2 container requirements for transactional contexts. This includes the declaration of transaction attributes in the deployment descriptor as well as behavior of particular transaction attributes.
Identify correct and incorrect statements or examples about EJB transactions, including bean-managed transaction demarcation, and container-managed transaction demarcation.
Identify correct and incorrect statements about the Application Assembler's responsibilities, including the use of deployment descriptor elements related to transactions, and the identification of the methods of a particular bean type for which a transaction attribute must be specified.
Given a list of transaction behaviors, match them with the appropriate transaction attribute.
Given a list of responsibilities, identify whose which are the container's with respect to transactions, including the handling of getRollbackOnly, setRollbackOnly, getUserTransaction, SessionSynchronzation callbacks, for both container and bean-managed transactions.
1 101 1

Exceptions  3 questions

Identify how the Container behaves during transactional situations based on declared transaction attributes, as well as other situations where the Container throws exceptions.
Identify correct and incorrect statements or examples about exception handling in EJB.
Given a list of responsibilities related to exceptions, identify those which are the bean provider's, and those which are the responsibility of the container provider. Be prepared to recognize responsibilities for which neither the bean or container provider are responsible.
Identify correct and incorrect statements or examples about application exceptions and system exceptions in entity beans, session beans, and message-driven beans.
Given a particular method condition, identify the following: whether an exception will be thrown, the type of exception thrown, the container's action, and the client's view.
Identify correct and incorrect statements or examples about the client's view of exceptions received from an enterprise bean invocation.

0 54 0

Exam information

  • 24 minutes
  • 18 questions (382)
  • 80% required
  • +4 √
  • - 8  points
  • 15 day delay
  • status: released

Top contributors