EJB Programming for WebLogic using Eclipse Training

Duration: 
5 days
Codes: 
WA1279,EJB

Overview

This course is an advanced introduction to the Enterprise Java Beans (EJB) technology. It starts by introducing the concepts and ideal for someone who has never programmed using EJB. The course rapidly picks up and ends with advanced concepts that students can use in real life to complete large scale EJB based projects. The development and labs will be based on Eclipse 3.0.1, Lomboz plugin and Weblogic, emphasizing the new features of the EJB 2.0 specification.

Audience

This course is intended for intermediate to advanced Java programmers. System architects will find the advanced concepts especially beneficial in designing a framework..

Skills Gained

  • Review of Eclipse and Lomboz plugin
  • Introduction to Web Applications and J2EE
  • Overview of Enterprise Java Beans
  • Session EJBs
  • Entity EJBs
  • EJB and Exceptions
  • EJB and Transactions
  • EJB Security
  • Message-Driven EJBs
  • J2EE Best Practices with Focus on EJB
  • J2EE Deployment
  • J2EE Design Patterns with Focus on EJB
  • Team Development and Profiling
  • Managing Multi-Server Environments
  • Application Tracing and Troubleshooting

Practical Work Students develop session beans with Eclipse and WebLogic, including accessing a database from session bean and EJB Java Client. Next, they develop CMP Entity Beans, including EJB/RDB mapping, finder methods. The purpose is to display the use of development, testing, and deployment tools to improve EJB development productivity. At the end of the labs, students will deploy a J2EE application to the WebLobic server.

After completing this course, the student should be able to:

  • Understand the need for EJB
  • Understand the EJB 2.0 specification at an expert level
  • Understand how to develop, test, and deploy EJBs with Eclipse and WebLogic
  • Gain knowledge of J2EE Design Patterns and Best Practices
  • Learn the industry secrets in EJB scalability

Prerequisites

The student is expected to understand the core Java libraries; be familiar with web application programming, including servlets and JSPs. Duration Five days.

Course Outline

Outline of EJB Programming for WebLogic using Eclipse Training 1. Introduction to Eclipse and Lomboz Plugin

  • TBD

2 . Introduction to Web Applications

  • Java Web applications
  • Java Web application architecture
  • J2EE architecture
  • Web application programming model - MVC
  • A scenario of using MVC
  • Typical services provided by application servers
  • EAR projects
  • EJB projects
  • Eclipse and WebLogic testing environment
  • Server perspective
  • Resources configuration
  • Debug mode
  • JNDI explorer
  • J2EE, data, Web and XML tooling
  • Performance and trace tooling
  • Team development

3 . Overview

  • Needs for EJBs
  • Distributed computing and transactions
  • Distributed security
  • Main characteristics of EJBs
  • EJB architecture components
  • Enterprise JavaBeans
  • Session beans
  • Entity beans
  • EJB classes and interfaces
  • Basic components of entity and session beans
  • EJB home interface
  • EJB remote interface
  • EJB objects
  • EJB implementation class
  • Deployment descriptors
  • How do EJBs work
  • EJB container services
  • EJB application development
  • Deploying enterprise beans
  • Major components of deployed EJBs

4 . Session Beans

  • Stateless session beans
  • Stateful session beans
  • Components of session beans
  • Home interface for session beans
  • Remote interfaces for session beans
  • The session bean class
  • The ejbCreate() method
  • Business methods
  • The session context
  • Session bean life cycle
  • Concurrency issues
  • Invoking session beans from a client application
  • Create an EJB object
  • Calling business methods
  • JBuilder J2EE development environment
  • Developing and deploying a session bean using JBuilder X.
  • Running a session bean on the server
  • Testing EJBs in Eclipse.

5 . Entity Beans

  • Entity beans components
  • Container
  • Primary key class
  • Home interface
  • Remote interface
  • Entity bean class
  • Entity instance
  • Entity object life cycle
  • Bean instance life cycle
  • Persistence
  • Bean-managed persistence (BMP)
  • Writing a BMP bean
  • Container-managed persistence (CMP)
  • Writing a CMP bean
  • Finder helpers
  • Indicating persistent fields
  • Entity context
  • Writing CMP beans
  • Object-relational mapping
  • Data mapping with BMP
  • Standard CMP field mapping
  • Defining and mapping CMP fields
  • Meet-in-the-middle
  • A CMP entity bean example
  • Adding CMP fields in the bean
  • Creating a top-down database mapping
  • Adding a BMP entity EJB
  • Setting deployment descriptors
  • EJB editor (ejb-jar.xml)
  • Map editor

6 . Exceptions

  • Use of Exception
  • Exception types
  • System Exception
  • Application Exception
  • Bean class
  • Client
  • Standard Exceptions

7 . Transactions

  • Transaction management
  • Object transaction
  • EJB transaction basics
  • Transaction propagation
  • Client-managed transaction
  • Bean-managed transaction
  • Container-managed transaction
  • Transaction outcome
  • Vetoing transaction
  • Transaction isolation
  • Isolation level

8 . Security

  • Goals of the EJB Security specification
  • EJB Delegation Policy
  • Programmatic EJB security

9 . Message-Driven Beans

  • The Need for Messaging
  • The Java Message Service
  • Queues and Topics
  • Integration JMS and EJB
  • Message-Driven Beans Concepts
  • Security, Transactions, Load Balancing
  • Poison Messages
  • Responding to the Sender

10 . Best Practices

  • Using Session Beans Effectively
  • Dealing with Transactions
  • Optimizing Your Deployment
  • Pooling for Container-Managed Persistence Entity Beans
  • Using Access Beans
  • JDBC Best Practices
  • Java Best Practices
  • WebLogic Best Practices

11 . Deployment

  • WebLogic troubleshooting
  • Workload management and scaling
  • Enterprise JavaBean
  • Overview
  • Bean developer entries
  • Application assembler entries
  • EAR file
  • JAR file
  • Install applications
  • Configure applications
  • Update applications

12 . J2EE Design Patterns

  • What is a Design Pattern?
  • EJB Layer Design Patterns
  • Transaction and Persistence Patterns
  • Client-Side EJB Interaction Patterns
  • Generating Primary Keys

Thinking about Onsite?

If you need training for 3 or more people, you should ask us about onsite training. Putting aside the obvious location benefit, content can be customised to better meet your business objectives and more can be covered than in a public classroom. It's a cost effective option.

Submit an enquiry from any page on this site, and let us know you are interested in the requirements box, or simply mention it when we contact you.