Sun Microsystems, Inc.
spacer spacer
spacer   Sun Educational Services  
spacer
black dot
  black fade
spacer
  Course Catalog
logo

Enterprise JavaBeans[tm] Programming

( SL-351 )


     Course DescriptionBack To Top

The Enterprise JavaBeans[tm] Programming course provides students with the information needed to create an Enterprise JavaBeans (EJB [tm]) components that is compliant with Java[tm] 2 Platform, Enterprise Edition (J2EE[tm]) and combine them into robust enterprise applications. Instruction and practical hands-on exercises cover these essential topics: Session and entity beans, the Container framework in which EJB components function, transaction and security management features. Participants use the standard J2EE Reference Implementation server in lab exercises.

Component-based application development increases development productivity through the encapsulation of business logic into reusable components which can be used by the entire development organization. The J2EE technology defines a set of components and builds a service-oriented infrastructure into the platform to automatically support and manage components. At the heart of this specification are EJB technology components.


Course details
    id:      SL-351
    duration:  5 days
    list price:  $  2195.00

 
     Who Can Benefit Back To Top

Personnel from both Information Technology (IT) and Independent Software Vendors (ISVs) who have programming experience with the Java programming language. Roles which would be most directly interested in this course are technology architects, system analysts, developers, software integrators, and system administrators.

 
     Prerequisites Back To Top

To succeed fully in this course, students should be able to:

  • Display experience with the Java programming language
  • Display experienced with object-oriented design and analysis
  • Be familiar with distributed programming (multitier architecture)
  • Be familiar with relational or object database programming
  • Be familiar with transactions
  • Demonstrate ability to create multitier Java application solutions
  • Be familiar with component technology
  •  
         Skills Gained Back To Top

    Upon completion of this course, you should be able to:

  • Describe the architecture for developing an enterprise application which adheres to the EJB 1.1 specifications
  • List the enterprise application programming interfaces (APIs) for the J2EE
  • Describe EJB architecture
  • Describe how to access the EJB components
  • Describe how to manage security
  • Design a session bean and an entity bean
  •  
         Related Courses Back To Top

  • Before: FJ-310: Developing J2EE Compliant Applications
  •  
         Course Content Back To Top



    Module 1 - Introduction to Enterprise Technology Back To Top

  • Differentiate between client-server and multitier architecture
  • List the advantages of and issues with multitier architecture
  • List the advantages of J2EE technology
  • Discuss the goals and scope of J2EE and EJB
  • List two primary features of the EJB specification
  • List two benefits of an EJB solution
  • Differentiate between the EJB architecture and the JavaBeans architecture


  • Module 2 - EJB Framework Back To Top

  • List the three primary components in an EJB server runtime
  • List four services the container can provide to the bean
  • List three differences between session and entity beans
  • List the four required objects that are placed in the EJB jar file
  • Define declarative programming
  • Discuss the shift in the programming paradigm from traditional development to a role-based, declarative development model
  • List the types of clients that can access an EJB component
  • List the steps involved for a client to communicate with an enterprise bean


  • Module 3 - Writing a Session Bean Back To Top

  • List the four methods in the SessionBean interface
  • Describe the swapping mechanism for session beans
  • Describe the difference between a stateful and a stateless session bean
  • Explain how the enterprise bean's life cycle is managed


  • Module 4 - Defining the Interfaces Back To Top

  • List the four methods required in your home interface, and explain their function
  • List the five methods required in your remote interface, and explain their function
  • List the superclasses for your home and remote interfaces
  • Explain which exceptions should be thrown to indicate system errors
  • Explain which exceptions should be thrown to indicate application errors


  • Module 5 - Deploying a Session Bean Back To Top

  • Write a deployment descriptor (DD) to describe the structural information for a session bean
  • Add environment information to the DD
  • Add bean and resource factory references to the DD
  • Modify DD to provide assembly information resolving references to external beans and resource factories
  • List which aspects of the DD the deployer can and cannot change
  • Explain how JNDI is used to access the bean's environment


  • Module 6 - Writing an EJB Client Back To Top

  • Use JNDI to locate the home object
  • Create a session bean instance using the home object
  • Invoke the bean's business methods
  • Pass and return values
  • Correctly handle bean exceptions in the client


  • Module 7 - Entity Beans Back To Top

  • List and explain the two persistence management techniques
  • List the additional methods in the EntityBean interface, and explain their purpose
  • Describe what it means to load and store a bean
  • Explain the requirements for defining a primary key


  • Module 8 - Bean-Managed Persistence Back To Top

  • Correctly write the ejbCreate method to insert a row in a database table
  • Correctly write the ejbLoad and ejbStore methods to synchronize the bean with its underlying table row


  • Module 9 - Defining Finder Methods Back To Top

  • Define finder methods in your bean
  • Declare finder methods in your home interface
  • Define finder methods that return single rows and those that return multiple rows
  • Explain the reason for different return types for the finder methods in the bean and in the home interface


  • Module 10 - Container-Managed Persistence Back To Top

  • Explain how the container accesses the internal data stored in your bean
  • Implement the ejbCreate methods to allow the container to perform persistence
  • Redefine the remaining methods to work correctly with container-managed persistence


  • Module 11 - Transactions in the EJB Architecture Back To Top

  • List and describe the five transactional participants
  • List the four transaction isolation levels
  • Explain how to send transactions between two beans in a distributed environment


  • Module 12 - Container-Managed Transactions Back To Top

  • List the six transaction attributes
  • Name the tag/value pair used in DD to specify CMT
  • List which methods of session/entity beans that require transaction attributes to be specified in DD
  • Explain how a bean would roll back a transaction


  • Module 13 - Bean-Managed Transactions Back To Top

  • Indicate in the DD that the bean will be managing its own transactional state
  • Use the appropriate APIs in the bean to create and terminate transactions
  • Explain the issues of BMT with stateful/stateless session beans


  • Module 14 - Session Synchronization Back To Top

  • Explain the purpose of the SessionSynchronization interface
  • Describe how each of the three methods in this interface provide transaction control to your bean
  • List which transaction controls can be used on a bean that is implementing this interface
  • Explain why beans that implement this interface cannot use BMT


  • Module 15 - EJB Architecture Security Back To Top

  • Define users, principals, and roles
  • Describe what security information is placed in DD
  • Explain how a container can provide security implementation

  • Terms of UsePrivacy PolicyFeedback Copyright 1994-2002 Sun Microsystems, Inc.