Chapitre 1 - Editions ENI
Transcription
Chapitre 1 - Editions ENI
Chapitre 1 Introduction 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Chapitre 2 L'application VenteEnLigne 1. Présentation de l'application VenteEnligne . . . . . . . . . . . . . . . 18 Chapitre 3 Les entity beans et l'API de persistance (JPA) 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 2. Le mapping des classes et des tables . . . . . . . . . . . . . . . . . 30 3. L'interface EntityManager . . . . . . . . . . . . . . . . . . . . . . . 68 4. La gestion des transactions . . . . . . . . . . . . . . . . . . . . . . 69 5. Le mapping des relations . . . . . . . . . . . . . . . . . . . . . . . 79 6. Les stratégies d'héritage. . . . . . . . . . . . . . . . . . . . . . . . 83 7. Le langage JPQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86 Chapitre 4 Les session beans 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 2. Connexion et maintien de l'état avec un stateful session bean . . . . . . 98 3. Appels de Stateless session beans . . . . . . . . . . . . . . . . . . 122 4. Packaging et déploiement de l'application . . . . . . . . . . . . . . . 136 Chapitre 5 Traitement des commandes avec les Message-Driven Beans 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142 2. JMS : queues et topics . . . . . . . . . . . . . . . . . . . . . . . . 142 3. EJB MDB : traitement asynchrone des commandes . . . . . . . . . . . 143 4. Quartz et EJB MDB : traitement des cartes de crédits . . . . . . . . . 159 Chapitre 6 Utilisation des Web Services 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 2. Présentation de SOAP et WSDL . . . . . . . . . . . . . . . . . . . . 164 3. Exposer des EJB 3 en tant que services Endpoint. . . . . . . . . . . . 166 4. Web Service de vérification du numéro de carte de crédit avec JAX-WS . 166 5. JAX-RS : Les RESTful Web Services . . . . . . . . . . . . . . . . . . 175 Chapitre 7 Les EJB Timers 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 2. Mise en place d'une alerte avec un stateless session bean. . . . . . . 194 3. Les EJB Timers de type Message Driven Bean . . . . . . . . . . . . . 206 4. LES EJB Timers et les transactions . . . . . . . . . . . . . . . . . . 212 Chapitre 8 Les interceptors 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 2. Définition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 3. L'interface InvocationContext . . . . . . . . . . . . . . . . . . . . . 217 4. Le design pattern Chain of Responsibility (CoR) . . . . . . . . . . . . 218 5. Intercepter la création d'un nouveau client . . . . . . . . . . . . . . 218 6. Contrôle des stocks des articles . . . . . . . . . . . . . . . . . . . 226 Chapitre 9 Sécurité 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232 2. Interface d'administration. . . . . . . . . . . . . . . . . . . . . . . 232 3. Authentication, autorisation et rôles avec JAAS et les EJB 3 . . . . . . . 233 Chapitre 10 Struts 2 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 2. Présentation de Struts 2 . . . . . . . . . . . . . . . . . . . . . . . 260 3. Le modèle MVC 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 260 4. Appels des EJB 3 dans Struts 2 . . . . . . . . . . . . . . . . . . . . 261 Chapitre 11 Développement d'un client avec JSF 2 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340 2. Le framework JSF 2.0. . . . . . . . . . . . . . . . . . . . . . . . . 340 3. Développement de l'application cliente avec JSF 2.0 . . . . . . . . . . 349 Chapitre 12 Génération de rapports avec JasperReports 1. Introduction à JasperReports et à iReport . . . . . . . . . . . . . . . 428 2. Les EJB 3 en tant que source de données . . . . . . . . . . . . . . . 430 Chapitre 13 Développement d'un client avec Flex 3 1. Introduction à Flex . . . . . . . . . . . . . . . . . . . . . . . . . . 474 2. Intégration des EJB 3 avec GraniteDS . . . . . . . . . . . . . . . . . 486 Chapitre 14 Mise en place de l'environnement 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 536 2. L'environnement Java . . . . . . . . . . . . . . . . . . . . . . . . . 536 3. Le serveur d'application JBoss . . . . . . . . . . . . . . . . . . . . 538 4. L'outil de développement Eclipse . . . . . . . . . . . . . . . . . . . 545 5. La base de données Oracle . . . . . . . . . . . . . . . . . . . . . . 557 6. Le driver P6Spy. . . . . . . . . . . . . . . . . . . . . . . . . . . . 560 7. Le serveur LDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . 561 8. L'environnement Flex . . . . . . . . . . . . . . . . . . . . . . . . . 564 Chapitre 15 EJB 3.1 : les nouveautés avec JAVA EE 6 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 572 2. Session bean sans interfaces . . . . . . . . . . . . . . . . . . . . 572 3. Simplification du packaging . . . . . . . . . . . . . . . . . . . . . 576 4. Le singleton bean et la concurrence d'accès . . . . . . . . . . . . . 578 5. Appels asynchrones avec les session beans . . . . . . . . . . . . . 583 6. Le service Timer EJB . . . . . . . . . . . . . . . . . . . . . . . . 585 7. Un nommage JNDI standardisé. . . . . . . . . . . . . . . . . . . . 588 8. EJB Lite et les profils . . . . . . . . . . . . . . . . . . . . . . . . 590 9. Container EJB embarqué. . . . . . . . . . . . . . . . . . . . . . . 590 10. Tableau récapitulatif des nouvelles annotations. . . . . . . . . . . . 592