EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g
eBook - ePub

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g

  1. 448 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g

About this book

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.

A practical guide illustrated with examples for developing EJB 3.0 applications integrated with commonly used Java EE frameworks such as JSF, Web Services, Ajax, and ADF Faces

Approach

This is a practical, tutorial-style book that includes many examples that demonstrate how to develop EJB 3.0 database persistence applications with Oracle Fusion Middleware 11g. Every chapter starts with setting the environment for the chapter and includes an example application illustrated with figures at milestone stages.

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.

Trusted by 375,005 students

Access to over 1.5 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2010
Edition
1
eBook ISBN
9781849681568

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g


Table of Contents

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g
Credits
About the Author
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
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
2. Converting an EJB 2.0 Entity to an EJB 3.0 Entity
Setting the environment
Adding an Application
Creating an XML deployment descriptor
Creating stylesheets
Converting the entity class
The EJB 2.0 entity
The XSLT stylesheet
Generating the EJB 3.0 entity
Developing a session façade for an entity
The XSLT stylesheet
Generating the session Façade
Summary
3. EclipseLink JPA Persistence Provider
Specifying the EclipseLink persistence provider
The JPA framework
Advantages of JPA
What is required for JPA?
Types of entity managers
Container-managed entity manager
Application-managed entity manager
EclipseLink JPA
Metadata annotations
XML mapping metadata
Entity identity
Entity relationships
EclispeLink JPA Persistence unit properties
Summary
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
Mapping an Oracle database table to an entity bean
The entity bean class
Creating a session bean
The session bean class
Creating and testing a test client
Creating a client
Testing the client
Summary
5. EJB 3.0 Persistence with Oracle Enterprise Pack for Eclipse
Setting the environment
Installing required products
Creating a MySQL database table
Configuring WebLogic Server with MySQL database
Creating a data source
Deploying the data source
Testing the data source
Creating a JPA project in Eclipse
Creating an EJB 3.0 entity bean
The EJB 3.0 entity class
Creating a Persistence Configuration file
Creating a session bean
The session bean class
Creating a test client
Deploying the entity in WebLogic Server
Testing the EJB 3.0 entity client
Summary
6. EJB 3.0 with ADF Faces UI
Setting the environment
Creating a datasource in JDeveloper
Creating an EJB 3 application
Creating an EJB 3 entity bean from Oracle database
The Entity class
The persistence configuration file
Creating a session bean
The session bean class
Creating an Oracle ADF Faces client user interface
Creating a JSF page
Adding ADF Faces components
The index JSF page
The JSF page to create an Entity
The JSF page to find an Entity
The catalog entry JSF page
The managed bean
The JSF configuration file
The web application configuration file
Testing the Oracle ADF Faces user interface
Creating an Entity instance
Finding an Entity instance
Summary
7. Creating EJB 3.0 Entity Relationships
EJB 3.0 entity relationship annotations
Setting the environment
Creating database tables
Creating an EJB project
Creating the entity beans
The Entity classes
The Catalog entity class
The Edition entity class
The Section entity class
The Article entity class
Creating a session bean
The Session Bean class
Creating the client
Testing the client
Modifying the fetch strategy
Summary
8. EJB 3.0 Database Persistence with Ajax in the UI
The XMLHttpRequest Object
Setting the environment
Installing WebLogic Server
Creating an EJB 3.0 application in JDeveloper
Creating a database connection
Creating a data source in WebLogic Server
Creating an entity bean
The entity bean class
The Entity configuration file
Creating a session bean
The session bean class
Creating a servlet client
The Servlet class
Creating an Ajax user interface
Sending an Ajax request
Processing the server response
The Ajax user interface JSP
Creating an application deployment descriptor
Deploying the EJB 3 application to WebLogic Server
Creating a build file
Deploying the EJB 3.0 application
Testing the Ajax input form
Summary
9. Using JSF with Entity Relationships
Setting the environment
Creating database tables
Creating an EJB 3.0 application
Creating a database connection
Creating entity beans from tables
Edition entity
Section entity
Article entity
Entity Persistence Configuration file
Creating a session bean
Session bean class
Creating JSF user interfaces
Adding JSF components to the article JSF page
Managed bean for the article JSF page
Adding JSF components to the section JSF page
Managed bean for the section JSF page
Adding JSF components to the Edition JSF page
Managed bean for the Edition JSF page
Adding JSF page navigation
Web configuration file
Running the JSF user interfaces
Creating an Edition entity
Creating a Section entity
Creating an Article entity
The database persisted entities
Summary
10. Creating an EJB 3.0 Web Service
Setting the environment
Creating a JDeveloper application
Creating a database connection
Creating a data source in the WebLogic server
Creating an entity bean
The Entity class
The entity Persistence Configuration file
Creating a stateless session bean
The session bean class
Creating a Web Service class
Creating a web service client
Creating and packaging Web Service classes
Testing the web service
Building the client
Testing the client
Summary
Index

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g

Copyright © 2010 Pa...

Table of contents

  1. EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.5M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1.5 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g by Deepak Vohra in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming Languages. We have over 1.5 million books available in our catalogue for you to explore.