Free Sample
+ Collection

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g

Starting
Deepak Vohra

This book walks you through the practical usage of EJB 3.0 database persistence with Oracle Fusion Middleware. Lots of examples and a step-by-step approach make it a great way for EJB application developers to acquire new skills.
$32.99
$54.99
RRP $32.99
RRP $54.99
eBook
Print + eBook

Want this title & more?

$16.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849681568
Paperback448 pages

About This Book

  • Integrate EJB 3.0 database persistence with Oracle Fusion Middleware tools: WebLogic Server, JDeveloper, and Enterprise Pack for Eclipse
  • Automatically create EJB 3.0 entity beans from database tables
  • Learn to wrap entity beans with session beans and create EJB 3.0 relationships
  • Apply JSF and ADF Faces user interfaces (UIs) to EJB 3.0 database persistence
  • A practical guide illustrated with examples to integrate EJB 3.0 database persistence with Ajax and Web Services

Who This Book Is For

This book is aimed at EJB 3.0 application developers who want to learn about the practical use of EJB 3.0 database persistence with Oracle Fusion Middleware. Those who are already using EJB 3.0 database persistence will learn about using EJB 3.0 database persistence with Oracle Fusion Middleware 11g. The target audience is expected to have some prior knowledge about Java EE, EJBs, EJB 3.0, JSF, AJAX, web services, and XML. This book is ideal for those developers who have working knowledge of JDeveloper and WebLogic server, and wish to learn about the practical use of EJB 3.0 with Oracle Fusion Middleware.

Table of Contents

Chapter 1: What's New in EJB 3.0
Metadata annotations
Configuration defaults
Environmental dependencies and JNDI Access
Simplified Session Beans
Simplified entity beans
Java Persistence API
Interceptors
Simplified checked exceptions
Callback Interfaces
Summary
Chapter 2: Converting an EJB 2.0 Entity to an EJB 3.0 Entity
Setting the environment
Converting the entity class
Developing a session façade for an entity
Summary
Chapter 3: EclipseLink JPA Persistence Provider
Specifying the EclipseLink persistence provider
The JPA framework
What is required for JPA?
Types of entity managers
EclipseLink JPA
EclispeLink JPA Persistence unit properties
Summary
Chapter 4: Building an EJB 3.0 Persistence Model with Oracle JDeveloper
Setting the environment
Creating a datasource in JDeveloper
Creating an EJB 3 application
Creating an EJB 3 entity bean
Creating a session bean
Creating and testing a test client
Summary
Chapter 5: EJB 3.0 Persistence with Oracle Enterprise Pack for Eclipse
Setting the environment
Configuring WebLogic Server with MySQL database
Creating a JPA project in Eclipse
Creating an EJB 3.0 entity bean
Creating a Persistence Configuration file
Creating a session bean
Creating a test client
Deploying the entity in WebLogic Server
Summary
Chapter 6: EJB 3.0 with ADF Faces UI
Setting the environment
Creating an EJB 3 entity bean from Oracle database
Creating a session bean
Creating an Oracle ADF Faces client user interface
Testing the Oracle ADF Faces user interface
Summary
Chapter 7: Creating EJB 3.0 Entity Relationships
EJB 3.0 entity relationship annotations
Setting the environment
Creating the entity beans
Creating a session bean
Creating the client
Testing the client
Modifying the fetch strategy
Summary
Chapter 8: EJB 3.0 Database Persistence with Ajax in the UI
The XMLHttpRequest Object
Setting the environment
Creating an EJB 3.0 application in JDeveloper
Creating an entity bean
Creating a session bean
Creating a servlet client
Creating an Ajax user interface
Deploying the EJB 3 application to WebLogic Server
Testing the Ajax input form
Summary
Chapter 9: Using JSF with Entity Relationships
Setting the environment
Creating entity beans from tables
Creating a session bean
Creating JSF user interfaces
Running the JSF user interfaces
Summary
Chapter 10: Creating an EJB 3.0 Web Service
Setting the environment
Creating a data source in the WebLogic server
Creating an entity bean
Creating a stateless session bean
Creating a Web Service class
Creating a web service client
Creating and packaging Web Service classes
Testing the web service
Summary

What You Will Learn

  • Explore the new features in the EJB 3.0 specification
  • Convert an EJB 2.0 entity bean to EJB 3.0 in JDeveloper
  • Create EJB 3.0 entity beans from database tables automatically in JDeveloper
  • Implement EJB 3.0 database persistence with JDeveloper, WebLogic Server, and Enterprise Pack for Eclipse
  • Wrap an entity bean with a session bean
  • Build a client for an EJB 3.0 entity bean application
  • Develop an ADF Faces user interface (UI) for entity beans
  • Create EJB 3.0 entity relationships
  • Design JSF UIs for EJB 3.0 entity relationships
  • Integrate EJB 3.0 database persistence with an AJAX user interface (UI)
  • Build EJB 3.0 Web Services from entity beans

In Detail

EJB (Enterprise JavaBeans) 3.0 is a commonly used database persistence technology in Java EE applications. EJB 3.0 has simplified the development of EJBs with an annotations-based API that eliminates the use of remote/local interfaces, home/local home interfaces, and deployment descriptors. A number of other books are available on EJB 3.0, but none covers EJB 3.0 support in Oracle Fusion Middleware 11g, which is one of the leaders in the application server market.

This is the first book that covers all aspects of EJB 3.0 database persistence development using Oracle Fusion Middleware technology. It covers all the best practices for database persistence ensuring that your applications are easily maintainable. Leaving theory behind, this book uses real-world examples to guide you in building your own EJB 3.0 applications that are well integrated with commonly used Java EE frameworks.

The book gets going by discussing the new features in the EJB 3.0 specification. As some readers may still be using EJB 2.0, the book explains how to convert your EJB 2.0 entity beans to EJB 3.0. It then goes on to discuss using EJB 3.0 database persistence with JDeveloper, WebLogic Server, and Enterprise Pack for Eclipse, the main Java EE components of Oracle Fusion Middleware 11g. The book also covers EJB 3.0 relationships and integrating EJB 3.0 relationships with JSF user interfaces. EJB 3.0 database persistence with some of the commonly used frameworks such as ADF Faces, AJAX, and Web Services is also discussed in the book. It uses the integrated WebLogic Server 11g in some of the chapters and the standalone WebLogic Server in other chapters. While JDeveloper is the primary Java IDE used in the book, one of the chapters is based on the Oracle Enterprise Pack for Eclipse.

By the time you reach the end of this book, you will be well-versed with developing EJB 3.0 applications using the different Java EE components of Oracle Fusion Middleware 11g.

Authors

Read More