Department of Informatics
Plan
- 1. Application Servers
- 2. Servlets, JSP, JDBC
- 3. J2EE: Vue d’ensemble
- 4. Distributed Programming
- 5. Enterprise JavaBeans
- 6. Enterprise JavaBeans: Special Topics
- 7. Prise de recul critique
Plan 1. Application Servers 2. Servlets, JSP, JDBC 3. J2EE: Vue - - PowerPoint PPT Presentation
Plan 1. Application Servers 2. Servlets, JSP, JDBC 3. J2EE: Vue densemble 4. Distributed Programming 5. Enterprise JavaBeans 6. Enterprise JavaBeans: Special Topics 7. Prise de recul critique Department of Informatics 5. Enterprise JavaBeans
Department of Informatics
Department of Informatics
Department of Informatics
en charge (construction des différents modules, interconnexions,…)
techniques
visible (tout est dans le code)
(ou par composants)
modules logiciels existants
problèmes du domaine
l'aide d'un langage déclaratif
5.1 Definitions
Department of Informatics
être installé sur différentes plates- formes
propriétés ou méthodes
(introspection)
configurables pour permettre la construction d’une application par composition
5.1 Definitions
Department of Informatics
prise en charge (masque) des services
prise en charge partielle des "connecteurs"
5.1 Definitions
Department of Informatics
5.1 Definitions
Department of Informatics
L'architecture des Enterprise JavaBeans (EJB) est une architecture de composants pour le développement et le déploiement d'applications d'entreprise distribuées basées sur des composants. Les applications écrites en utilisant l'architecture des EJB sont évolutives, transactionnelles et sûres. Ces applications peuvent être écrites une fois, puis déployées sur toute plate-forme serveur qui supporte la spécification des EJB.
Les EJB sont un modèle de composants côté serveur, basés sur les technologies à objets distribués, standard pour les CTM.
5.1 Definitions
Department of Informatics
reusable business logic functionality and/or a representation of a persistent business entity
concurrency, remote access, etc.
how to execute the Bean as part of an application
5.1 Definitions
Department of Informatics
Enterprise JavaBeans (EJB) technology is the basis of J2EE. EJB technology provides the scalable architecture for executing business logic in a distributed computing environment. J2EE makes the life of an enterprise developer easier by combining the EJB component architecture with other enterprise technologies to solutions on the Java platform for seamless development and deployment of server side applications.
5.1 Definitions
Department of Informatics
développement uniforme pour les applications qui utilisent les composants EB
indépendante de la plate-forme de déploiement
différents serveurs EJB
jar/ear file)
pour “packager” les beans. Ce format doit être supporter par tous les outils liés aux EJB
5.2 Global View
Department of Informatics
– méthodes liées à la gestion du bean : create, remove, finder, ...
5.2 Global View
Department of Informatics
gestion du cycle de vie, gestion de l’état, sécurité,
ces services appellent des méthodes fournies par
Entity beans Session beans Message driven beans
5.2 Global View
Department of Informatics
administration du bean ("Home implementation")
bean (callbacks)
gestion de l’état
sauvegarder l’état du bean
5.2 Global View
Department of Informatics
Client Interface
Container
Bean Instance
Client
Method invocation Method Delegation
TX support Security Persistence . . .
5.2 Global View
Department of Informatics
5.2 Global View
Department of Informatics
5.2 Global View
Department of Informatics
5.2 Global View
Department of Informatics
5.2 Global View
Department of Informatics
5.2 Global View
Department of Informatics
Persistent data focus
Client and application logic focus
Asynchronous message processing
5.2 Global View
Department of Informatics
See: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/
5.2 Global View
Department of Informatics
5.2 Global View «interface» javax.ejb.EJBObject «interface» RemoteInterface «interface» java.rmi.Remote
Department of Informatics
Creating beans Removing beans Finding beans
5.2 Global View
«interface» javax.ejb.EJBHome «interface» RemoteHomeInterface «interface» java.rmi.Remote
Department of Informatics
5.2 Global View
«interface» javax.ejb.EJBLocalObject «interface» LocalInterface
Department of Informatics
5.2 Global View «interface» javax.ejb.EJBLocalHome «interface» LocalHomeInterface
Department of Informatics
5.2 Global View
MyEntityBean MySessionBean «interface» java.io.Serializable «interface» javax.ejb.EnterpriseBean «interface» javax.ejb.EntityBean «interface» javax.ejb.SessionBean
Department of Informatics
5.2 Global View
java.io.Serializable MyPrimaryKey
Department of Informatics
– Example: A Bean always accessed by other Beans
5.2 Global View
Department of Informatics
Type of client
choose local
Coupling
Scalability requirements
5.2 Global View