1 Introduction and Roadmap

This section describes the contents and organization of this guide—Programming Enterprise JavaBeans for Oracle WebLogic Server.

Document Scope and Audience

This document is a resource for software developers who develop applications that include WebLogic Server Enterprise JavaBeans (EJBs).

The document mostly discusses the Java EE 6-based, EJB 3.1 programming model, in particular the use of metadata annotations to simplify development. This document does not address EJB topics that are different between versions 2.x and 3.x, such as design considerations, EJB container architecture, entity beans, deployment descriptor use, and so on. This document also does not address production phase administration, monitoring, or performance tuning. For links to WebLogic Server documentation and resources for these topics, see Related Documentation.

It is assumed that the reader is familiar with Java Platform, Enterprise Edition (Java EE) Version 6 and basic EJB programming concepts.

For information on programming and packaging 2.1 EJBs, see Programming Enterprise JavaBeans, Version 2.1, for Oracle WebLogic Server.

Guide to this Document

Related Documentation

This document contains EJB 3.1-specific development information. Additionally, it provides information only for session and message-driven beans. For complete information on general EJB design and architecture, the EJB 2.x programming model (which is fully supported in EJB 3.1), see the following documents.

EJB Documentation in WebLogic Server

For information about developing and deploying EJBs with WebLogic Server, see:

Additional EJB Information

It is assumed the reader is familiar with programming in Java EE 6 and EJB 3.1 concepts and features. To learn more about basic EJB concepts, such as the benefits of enterprise beans, the types of enterprise beans, and their life cycles, then visit the following Web sites:

Comprehensive Examples for the EJB Developer

In addition to this document and the basic examples described in Chapter 3, "Simple Enterprise JavaBeans Examples,", Oracle provides comprehensive examples in the WebLogic Server distribution kit.

WebLogic Server optionally installs these in WL_HOME/samples/server/examples/src/examples, where WL_HOME refers to the directory in which you installed WebLogic Server, such as /Oracle/Middleware/wlserver_12.1. On Windows, you can start the examples server, and obtain information about the samples and how to run them from the WebLogic Server Start menu.

Oracle recommends that you run these examples before programming your own application that uses EJBs.

New EJB 3.1 Examples

Oracle provides Java EE 6 examples that demonstrate new features in EJB 3.1, such as:

For more information, see these examples in the WebLogic Server distribution kit: WL_HOME/samples/server/examples/src/examples/javaee6/ejb.

EJB 3.0 Example

There is also an EJB 3.0 persistence service example, EJB 3.0: Example of Invoking an Entity From A Session Bean, that includes actual business code and provides practical instructions on how to perform key EJB 3.0 development tasks. In particular, the example demonstrates usage of EJB 3.x with:

  • Java Persistence API

  • Stateless Session Bean

  • Message Driven Bean

  • Asynchronous JavaScript based browser application

The example uses a persistent domain model for entity EJBs. For more information, see the example in the WebLogic Server distribution kit: WL_HOME/samples/server/examples/src/examples/ejb/ejb30.

New and Changed Features in this Release

For a comprehensive listing of the new features in EJB 3.1 features introduced in this release of WebLogic Server, see "Enterprise Java Beans (EJBs)" in What’s New in Oracle WebLogic Server.