SCBCD Study Guide

The purpose of this document is to help in preparation for exam CX-310-090 (Sun Certified Business Component Developer for the Java 2 Platform, Enterprise Edition 1.3). This document should not be used as the only study material for SCBDC test. It covers all objective topics, but it is not enough. I tried to make this document as much accurate as possible, but if you find any error, please let me know.

SCBCD Study Guide

SCBCD Study Guide

IBA JV

Mikalai Zaikin

Redistribution of this document is permitted as long as it is not used for profits.

March 2004

Revision History
Revision 2.431 Mar 2004MZ
Proposed Final Draft 3.
Revision 2.322 Dec 2003MZ
Proposed Final Draft 2.
Revision 2.219 Dec 2003MZ
Proposed Final Draft 1.
Revision 2.17 Dec 2003MZ
Chap 1.4, 13 updates.
Revision 2.04 Dec 2003MZ
Chap 14 updates.
Revision 1.93 Dec 2003MZ
Chap 14.2, 14.3 updates.

Abstract

The purpose of this document is to help in preparation for exam CX-310-090 (Sun Certified Business Component Developer for the Java 2 Platform, Enterprise Edition 1.3).

This document should not be used as the only study material for SCBDC test. It covers all objective topics, but it is not enough. I tried to make this document as much accurate as possible, but if you find any error, please let me know.


Table of Contents

Preface
I. Exam Objectives
1. EJB Overview
Identify the use, benefits, and characteristics of Enterprise JavaBeans technology, for version 2.0 of the EJB specification.
Identify EJB 2.0 container requirements.
Identify correct and incorrect statements or examples about EJB programming restrictions.
Match EJB roles with the corresponding description of the role's responsibilities, where the description may include deployment descriptor information.
Given a list, identify which are requirements for an EJB-jar file.
2. Client View of a Session Bean
Identify correct and incorrect statements or examples about the client view of a session bean's local and remote home interfaces, including the code used by a client to locate a session bean's home interface.
Identify correct and incorrect statements or examples about the client view of a session bean's local and remote component interfaces.
3. Session Bean Component Contract
Identify correct and incorrect statements or examples about session beans, including conversational state, the SessionBean interface, and create methods.
Identify the use and the behavior of the ejbPassivate method in a session bean, including the responsibilities of both the container and the bean provider.
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, allow the instance to mark the current transaction as a rollback, retrieve the UserTransaction interface, prepare the instance for reuse 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, and be notified that the current transaction has completed.
Match the correct description about purpose and function to which session bean type they apply: 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, a remote component interface, a remote home interface, create methods, business methods, a local component interface, and a local home interface.
4. Session Bean Life Cycle
Identify correct and incorrect statements or examples about the life cycle of a stateful or stateless session bean instance.
Given a list of methods for a stateful or stateless session bean class, define which of the following operations can be performed from each of those methods: SessionContext interface methods, UserTransaction methods, Java Naming and Directory Interface API (JNDI API) access to java:comp/env environment naming context, resource manager access, and other enterprise bean access.
Given a list of scenarios, identify which will result in an ejbRemove method not being called on a bean instance.
5. Client View of an Entity
Identify correct and incorrect statements or examples about the client of an entity bean's local and remote home interface, including viewing the code used to locate an entity bean's home interface and the home interface methods provided to the client.
Identify correct and incorrect statements or examples about the client view of an entity bean's local component interface (EJBLocalObject).
Identify correct and incorrect statements or examples about the client view of a entity bean's remote component interface (EJBObject).
Identify the use, syntax, and behavior of, the following entity bean home method types, for Container-Managed Persistence (CMP); finder methods, create methods, remove methods, and home methods.
6. Component Contract for Container-Managed Persistence (CMP)
Identify correct and incorrect statements or examples about the entity bean provider's view and programming contract for CMP, including the requirements for a CMP entity bean.
Identify correct and incorrect statements or examples about persistent relationships, remove protocols, and about the abstract schema type of a CMP entity bean.
Identify correct and incorrect statements or examples about the rules and semantics for relationship assignment and relationship updating in a CMP bean.
Match the name with a description of purpose or functionality, for each of the following deployment descriptor elements: ejb-name, abstract-schema-name, ejb-relation, ejb-relationship-role, cmr-field, cmr-field-type, and relationship-role-source.
Identify correctly-implemented deployment descriptor elements for a CMP bean (including container-managed relationships).
Identify the interfaces and methods a CMP entity bean must and must not implement.
7. CMP Entity Bean Life Cycle
Identify correct and incorrect statements or examples about the life cycle of a CMP entity bean.
From a list, identify the purpose, behavior, and responsibilities of the bean provider for a CMP entity bean, including but not limited to: setEntityContext, unsetEntityContext, ejbCreate, ejbPostCreate, ejbActivate, ejbPassivate, ejbRemove, ejbLoad, ejbStore, ejbFind, ejbHome, and ejbSelect.
From a list, identify the responsibility of the container for a CMP entity bean, including but not limited to: setEntityContext, unsetEntityContext, ejbCreate, ejbPostCreate, ejbActivate, ejbPassivate, ejbRemove, ejbLoad, ejbStore, ejbFind, ejbHome, and ejbSelect.
8. Entity Beans
From a list of behaviors, match them with the appropriate EntityContext method responsible for that behavior.
Identify correct and incorrect statements or examples about an entity bean's primary key and object identity.
9. EJB-QL
Identify correct and incorrect syntax for an EJB QL query including the SELECT, FROM, and WHERE clauses.
Identify correct and incorrect statements or examples about the purpose and use of EJB QL.
Identify correct and incorrect conditional expressions, BETWEEN expressions, IN expressions, LIKE expressions, and comparison expressions.
10. Message-Driven Bean Component Contract
Identify correct and incorrect statements or examples about the client view of a message-driven bean, and the life cycle of a message-driven bean.
Identify the interfaces and methods a JMS message-driven bean must implement.
Identify the use and behavior of the MessageDrivenContext interface methods.
From a list, identify the responsibility of the bean provider and the responsibility of the container provider for a message-driven bean.
11. Transactions
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 attributes.
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.
12. 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 provider or the 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.
13. Enterprise Bean Environment
Identify correct and incorrect statements or examples about an enterprise bean's environment JNDI API naming.
Identify correct and incorrect statements about the purpose and use of the deployment descriptor elements for environment entries, EJB references, and resource manager connection factory references; including whether a given code listing is appropriate and correct with respect to a particular deployment descriptor element.
Given a list of responsibilities, identify which belong to the deployer, bean provider, application assembler, container provider, system administrator, or any combination.
14. Security Management
Identify correct and incorrect statements about the EJB support for security management including security roles, security role references, and method permissions.
From a list of responsibilities, identify which belong to the application assembler, bean provider, deployer, container provider, or system administrator.
Given a code listing, determine whether it is a legal and appropriate way to programmatically access a caller's security context.
Given a security-related deployment descriptor tag, identify correct and incorrect statements and code related to that tag.
II. Appendixes
A. First Appendix
First Section
Second Section
Third Section
Bibliography

Visit http://java.boot.by  for the updates.

Certification Tutorials Home

Tutorials

  1. Appendix A. First Appendix
  2. Second Section
  3. Third Section
  4. Part II. Appendixes
  5. From a list, identify the responsibility of the bean provider and the responsibility of the container provider for a message-driven bean.
  6. Chapter 6. Component Contract for Container-Managed Persistence (CMP)
  7. Identify correct and incorrect statements or examples about persistent relationships, remove protocols, and about the abstract schema type of a CMP entity bean.
  8. Identify the interfaces and methods a CMP entity bean must and must not implement.
  9. Match the name with a description of purpose or functionality, for each of the following deployment descriptor elements: ejb-name, abstract-schema-name, ejb-relation, ejb-relat
  10. Identify correctly-implemented deployment descriptor elements for a CMP bean (including container-managed relationships).
  11. From a list, identify the purpose, behavior, and responsibilities of the bean provider for a CMP entity bean, including but not limited to: setEntityContext, unsetEntityContext, ejbC
  12. Chapter 7. CMP Entity Bean Life Cycle
  13. Identify correct and incorrect statements or examples about the rules and semantics for relationship assignment and relationship updating in a CMP bean.
  14. From a list, identify the responsibility of the container for a CMP entity bean, including but not limited to: setEntityContext, unsetEntityContext, ejbCreate, ejbPostCreate, ejbActi
  15. Given a code listing, determine whether it is a legal and appropriate way to programmatically access a caller's security context.
  16. Chapter 10. Message-Driven Bean Component Contract
  17. Identify correct and incorrect statements about the purpose and use of the deployment descriptor elements for environment entries, EJB references, and resource manager connection factory r
  18. Identify the use and the behavior of the ejbPassivate method in a session bean, including the responsibilities of both the container and the bean provider.
  19. Chapter 12. Exceptions
  20. Identify correct and incorrect statements or examples about the client view of an entity bean's local component interface (EJBLocalObject).
  21. Identify EJB 2.0 container requirements.
  22. Chapter 1. EJB Overview
  23. Identify correct and incorrect statements or examples about EJB programming restrictions.
  24. Chapter 9. EJB-QL
  25. Identify correct and incorrect statements or examples about the purpose and use of EJB QL.
  26. Identify correct and incorrect conditional expressions, BETWEEN expressions, IN expressions, LIKE expressions, and comparison expressions.
  27. Identify correct and incorrect statements or examples about the client view of a entity bean's remote component interface (EJBObject).
  28. Given a list, identify which are requirements for an EJB-jar file.
  29. Match EJB roles with the corresponding description of the role's responsibilities, where the description may include deployment descriptor information.
  30. Chapter 2. Client View of a Session Bean
  31. Chapter 13. Enterprise Bean Environment
  32. Chapter 8. Entity Beans
  33. Identify the use, syntax, and behavior of, the following entity bean home method types, for Container-Managed Persistence (CMP); finder methods, create methods, remove methods, and home me
  34. Identify correct and incorrect statements or examples about an entity bean's primary key and object identity.
  35. Identify correct and incorrect statements or examples about the client's view of exceptions received from an enterprise bean invocation.
  36. Identify correct and incorrect statements or examples about application exceptions and system exceptions in entity beans, session beans, and message-driven beans.
  37. 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.
  38. 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 recog
  39. SCBCD Study Guide
  40. Identify the use and behavior of the MessageDrivenContext interface methods.