EJB 3 - Intermediate

Print the objectives

  Take a beta test

This exams covers advanced EJB3 sections like Security and Transactions.

For reading and learning refer to the EJB 3.0 Specification.

  Released  Beta  Frozen  

Resources  3 questions

  • Write code that performs and ENC Loopup.
  • Write code that makes proper use of DI.
  • Be able to define DI either in the DD or per annotation(s).
  • Identify the fact that DI can be performed on attributes or setter\getter.
  • Be able to use DI in conjunction with inheritance.
  • Identify the different types of resources and how to declare them both per annotation or in the DD.
5 5 5

Transactions  3 questions

  • Describe the difference between BTM and CTM and what actions are allowed to BTM or CTM beans and which actions are not allowed to them.
  • Be able to define CTM Beans either per DD or per annotation.
  • Identify the semantics of the six different transaction attributes:
    • MANDATORY
    • NEVER
    • NOT_SUPPORTED
    • REQUIRED
    • REQUIRES_NEW
    • SUPPORTS
  • Use the methods of the EJBContext to influence CTM transactions.
  • Identify restrictions on transaction attributes in conjunction with MDB.
  • Identify restrictions on transaction attributes with SFSB that implements the interface SessionSynchronization. Write code that implements the interface SessionSynchronization.
  • Write code that makes usage of the methods of the interface UserTransaction to write BTM code.
  • Write code that makes usage of client-controlled transactions.
  • Be able to recognize situations where it is better to use BTM over CTM.
  • Identify what impact inheritance has on transaction attributes.
  • Identify methods that run in a unspecified transactional context.
14 36 5

Security  3 questions

  • Define what is in the scope of EJB (Authorization) and what not (Authentication).
  • Define roles either per annotation or in the DD.
  • Define rules for accessing the methods of a bean either per annotation or in the DD.
  • Write code that makes usage of programatic security.
  • Identify the impact that inheritance has on security configurations.
6 9 8

Message Driven Beans  3 questions

  • Identify the differences between a Queue and a Topic.
  • Write code that correctly declares a MDB.
  • Identify the lifecycle of a MDB.
  • Use the interface MessageDrivenContext.
  • Configure correct activation-configurations for a MDB.
  • Identify the differences between the acknowledge modes.
  • Identify how the bean will acknowledge a message, depending on the transaction mode used.
6 40 7

Webservice Exposure  2 questions

  • Expose a SLSB as webservice.
  • Determine what methods of a bean will be exposed.
  • Write code that maps a bean-method to a wsdl method, given a portion of a wsdl file.
  • Write code that calls methods of a webservice.
1 4 7

Exception Handling  2 questions

  • Identify the two different types of Exceptions and their impact on running transactions.
  • Identify the steps involved with the occurrence of a specific exception.
  • Be able to declare a ApplicationException per annotation or in the DD.
  • Identify the impact of exceptions in Callback or Interceptor methods.
  • Decide what exception will the client receive.
3 16 6

EJBContext  1 question

  • Identify what methods of the interface EJBContext and its subinterface can be used at a certain point in the lifecycle of a bean.
0 4 6

Timer  2 questions

  • Create and start a timer.
  • Define a legal timer method.
  • Cancel a timer.
  • Identify the impact that the rollback of a transaction has on the creation of a timer.
  • Identify the fact that the with @Timeout annotated method runs in a unspecified security context.
  • Recognize which Bean types can make use of timers.
6 19 5

Legacy Code  1 question

  • Write code that makes a EJB3 Session Bean available to EJB 2.x Clients
2 7 2

Exam information

  • 30 minutes
  • 20 questions (234)
  • 80% required
  • +4 √
  • - 12  points
  • 15 day delay
  • status: under construction

Exam leader

Top contributors