PacktLib: EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g

Credits

About the Author

About the Reviewers

Preface

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

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

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

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

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

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

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

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

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

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