Vasiliev | Beginning Database-Driven Application Development in Java EE | E-Book | www2.sack.de
E-Book

E-Book, Englisch, 400 Seiten

Vasiliev Beginning Database-Driven Application Development in Java EE

Using GlassFish
1. ed
ISBN: 978-1-4302-0964-5
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark

Using GlassFish

E-Book, Englisch, 400 Seiten

ISBN: 978-1-4302-0964-5
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark



Beginning Database-Driven Application Development in Java™ EE: Using GlassFish™ focuses on the open source GlassFish persistence engine. This book shows Java programmers how to develop applications utilizing relational database technologies with examples using Oracle and MySQL and the GlassFish application development framework and deployment platform all based on Java EE. The book explains in detail how you can organize your Java EE solution into a multilayer architecture, placing most emphasis on how to implement the persistence and database tiers of an application. Through many examples, this book shows how you can efficiently use the Java Persistence features available in the Java EE platform. Find out how you can greatly simplify the task of building the persistence layer of your Java EE application by moving some application logic into the underlying database, utilizing database views, stored programs, and triggers. The book also explains how to deploy Java EE applications to GlassFish, a free, open source Java EE 5-compliant application server.

Yuli Vasiliev is a software developer, freelance author, and consultant currently specializing in open source development, Java technologies, databases, and service-oriented architecture (SOA). He has over 10 years of software development experience as well as several years of technical writing experience. He wrote a series of technical articles for the Oracle Technology Network (OTN) and Oracle Magazine.

Vasiliev Beginning Database-Driven Application Development in Java EE jetzt bestellen!

Autoren/Hrsg.


Weitere Infos & Material


1;Contents at a Glance;5
2;Contents;7
3;About the Author;16
4;About the Technical Reviewer;17
5;Introduction;18
5.1;Who Is This Book For?;18
5.2;How Is This Book Structured?;18
5.3;What Will You Need to Use This Book?;19
6;Introduction;20
6.1;Setting Up Your Working Environment;21
6.1.1;Setting Up the GlassFish Application Server;21
6.1.2;Setting Up the NetBeans IDE;28
6.1.3;Setting Up Oracle Database XE;32
6.1.4;Setting Up MySQL;37
6.1.5;Summary;43
6.2;Getting Started with GlassFish;44
6.2.1;Overview of the GlassFish Application Server;44
6.2.2;Starting the Application Server;48
6.2.3;Performing GlassFish Administration with Admin Console;49
6.2.4;Performing GlassFish Administration with asadmin;53
6.2.5;Deploying Applications to the Server;54
6.2.6;Creating and Deploying a Web Application with the NetBeans IDE;61
6.2.7;Understanding GlassFish Domains;63
6.2.8;Summary;65
6.3;Introducing EJB 3 and the Java Persistence API;66
6.3.1;Overview of EJB 3;67
6.3.2;Your First EJB 3 Application;74
6.3.3;JPA at a Glance;81
6.3.4;Your First EJB JPA Application;83
6.3.5;Summary;93
7;Planning the Application;94
7.1;Planning a Java EE Application;95
7.1.1;Understanding the Structure of a Java EE Application;95
7.1.2;Planning Application Components and Their Interactions;100
7.1.3;Application Organization and Reuse;135
7.1.4;Planning the Steps to Building and Deploying Your Application;144
7.1.5;Planning the Sample Application;148
7.1.6;Summary;150
7.2;Planning the Underlying Database;151
7.2.1;Planning the Persistence Tier Upon an Existing, Underlying Database;151
7.2.2;Implementing Some Business Logic of an Application Inside the Database;155
7.2.3;Planning the Database Tier of the Sample Application;172
7.2.4;Summary;174
8;Building the Database Tier;175
8.1;Implementing the Database Tier;176
8.1.1;Creating the Database Schema for the Sample Application;177
8.1.2;Creating Database Tables to Store Application Data;179
8.1.3;Building the Stored Subprograms;184
8.1.4;Defining the Triggers;190
8.1.5;Testing the Underlying Database;192
8.1.6;Summary;196
8.2;Setting Up the Data Source;197
8.2.1;Overview of JNDI;197
8.2.2;Installing a Database Driver on the Application Server;199
8.2.3;Setting Up and Configuring the Data Source;200
8.2.4;Performing a Quick Test of the Data Source;206
8.2.5;Configuring the Settings of an Existing Data Source;209
8.2.6;Summary;210
9;Building the Persistence Tier;211
9.1;Designing JPA Entities;212
9.1.1;Creating JPA Entities Upon the Underlying Database Tables;212
9.1.2;Adjusting the Database Tier;222
9.1.3;Performing a Quick Test of the Newly Created JPA Entities;226
9.1.4;Building the Sample with the NetBeans IDE;234
9.1.5;Summary;235
9.2;Object/Relational Mapping;236
9.2.1;Mapping Java Objects to the Underlying Database;236
9.2.2;Specifying Object/ Relational Mapping Metadata;240
9.2.3;Utilizing Entity Relationships;245
9.2.4;Dealing with Entity Primary Keys;252
9.2.5;Summary;265
9.3;Using EntityManager;266
9.3.1;Managing Entities;266
9.3.2;Using EntityManager to Manipulate Entities;275
9.3.3;Using Entity Life- Cycle Callback Methods;289
9.3.4;Summary;295
9.4;Using Java Persistence Query Language ( JPQL);296
9.4.1;Defining Queries Over Entities;296
9.4.2;Retrieving Entities with JPQL;302
9.4.3;Using Native SQL Queries;313
9.4.4;Summary;314
10;Building the Business Logic Tier;316
10.1;Designing Session Beans;317
10.1.1;Creating Session Beans Implementing the Sample Application Logic;317
10.1.2;Testing the Newly Created Session Beans;323
10.1.3;Continuing with the Sample Project in the NetBeans IDE;329
10.1.4;Summary;330
10.2;Managing Transactions;331
10.2.1;Using Transactions in Java EE Applications;331
10.2.2;Some Transaction Scenarios;340
10.2.3;Summary;346
11;Building the Presentation Tier and Testing;347
11.1;Building the Presentation Tier;348
11.1.1;Accessing Java EE Functionality from a Presentation Tier;348
11.1.2;Using JAAS to Secure Java EE Applications;352
11.1.3;Building the Sample’s Presentation Tier with JSF;356
11.1.4;Summary;366
11.2;Testing the Application;367
11.2.1;Launching the Sample Application;367
11.2.2;Testing the Functionality of the Sample;370
11.2.3;Summary;372
12;Appendix;373
12.1;Getting Familiar with Relational Databases;374
12.1.1;What Database to Choose?;375
12.1.2;Using the SQL Database Language;385
12.1.3;Using Management Tools Shipped with Your Database;399
12.2;Index;402



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.