E-book details

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g. 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

EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g. 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

Deepak Vohra, Deepak Vohra

Ebook
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.
  • 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. Whats 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
  • Title: EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g. 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
  • Author: Deepak Vohra, Deepak Vohra
  • Original title: EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g. 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.
  • ISBN: 9781849681575, 9781849681575
  • Date of issue: 2010-08-26
  • Format: Ebook
  • Item ID: e_3b60
  • Publisher: Packt Publishing