plan
play

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. Prise de recul critique Department of Informatics 3. J2EE: Vue d'ensemble J2EE: Vue d'ensemble 1. Repositionnement


  1. Plan 1. Application Servers 2. Servlets, JSP, JDBC 3. J2EE: Vue d’ensemble 4. Distributed Programming 5. Enterprise JavaBeans 6. Prise de recul critique Department of Informatics

  2. 3. J2EE: Vue d'ensemble J2EE: Vue d'ensemble 1. Repositionnement de la plateforme Java 2. Vue d'ensemble de J2EE 3. Services garantis par J2EE 4. Relation avec EJB 5. Déploiement XML Department of Informatics

  3. 3. J2EE: Vue d'ensemble 3.1 Repositionnement de la plateforme Java Java 2 Platform � Java 2 Platform, Micro Edition (J2ME) � For consumer devices, small memory devices like smartcards, pagers, handhelds, cellular phones,… � Java 2 Platform, Standard Edition (J2SE) � Contains the J2SDK (Software Development Kit) and the J2RE (Java Runtime Environment) � Programming platform aimed at networked- oriented enterprise applications � Java 2 Platform, Enterprise Edition (J2EE) � For multi-tier server-oriented enterprise applications Department of Informatics

  4. 3. J2EE: Vue d'ensemble 3.2 Vue d'ensemble de J2EE J2EE: Vue d’ensemble Department of Informatics

  5. 3. J2EE: Vue d'ensemble 3.2 Vue d'ensemble de J2EE Architecture J2EE Department of Informatics

  6. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards garantis par J2EE Enterprise JavaBeans 2.0: spécification complète des composants 2. Servlets 2.3: Servlets 3. JavaServer Pages 1.2 4. JDBC 2.0: connectivité bases de données 5. Java Naming and Directory Service (JNDI) 1.2: service de nommage 6. JavaMail 1.2: courrier électronique 7. Java Message Service (JMS) 1.0.2: service messagerie 8. Java API for XML Processing (JAXP) 1.1 9. Java Connector Architecture (JCA) 1.0: intégration à des SI existants 10. Java Authentication and Authorization Service (JAAS) 1.0: 11. authentification et autorisation Java Transaction API (JTA) 1.0.1: service de transactions 12. Department of Informatics

  7. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (2) � Enterprise JavaBeans Technology 2.0 � An Enterprise JavaBeans (EJB) component or enterprise bean is a body of code with fields and methods to implement modules of business logic. You can think of an enterprise bean as a building block that can be used alone or with other enterprise beans to execute business logic on the J2EE server. � There are three kind of enterprise beans: • Session beans (often stateless) • Entity beans (offer persistence) • Message-driven bean Department of Informatics

  8. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (3) � Java Servlet Technology 2.3 � Java Servlet technology lets you define HTTP- specific servlet classes. � A servlet class extends the capabilities of servers that host applications accessed by way of a request-response programming model. � Although servlets can respond to any type of request, they are commonly used to extend the applications hosted by Web servers. Department of Informatics

  9. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (4) � JavaServer Pages Technology 1.2 � JavaServer Pages technology lets you put snippets of servlet code directly into a text-based document. � A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format such as HTML, WML, and XML, and JSP elements, which determine how the page constructs dynamic content. Department of Informatics

  10. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (5) � JDBC API 2.0 � The JDBC API lets you invoke SQL commands from Java programming language methods. � The JDBC API has two parts: • an application-level interface used by the application components to access a database, • and a service provider interface to attach a JDBC driver to the J2EE platform. Department of Informatics

  11. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (6a) � Java Naming and Directory Interface 1.2 The JNDI provides naming and directory functionality. It � provides applications with methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes. Using JNDI, a J2EE application can store and retrieve any type of named Java object. Because JNDI is independent of any specific implementations, � applications can use JNDI to access multiple naming and directory services, including existing naming and directory services such as LDAP, NDS, DNS, and NIS. This allows J2EE applications to coexist with legacy applications and systems. Department of Informatics

  12. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (6b) � JNDI = Java Naming and Directory Interface � Annuaire hiérarchique distribué � Accès unifié au DNS, LDAP, NIS, système de fichiers,… � Nécessaire pour trouver des objets à distance � Accès au EJB home uniquement par JNDI � Permet reconfiguration des EJB sans modification dans le code Department of Informatics

  13. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (6c) Department of Informatics

  14. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (7) � JavaMail API 1.2 � J2EE applications can use the JavaMail API to send e-mail notifications. The JavaMail API has two parts: an application-level interface used by the application components to send mail, and a service provider interface. � The J2EE platform includes JavaMail with a service provider that allows application components to send Internet mail. Department of Informatics

  15. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (8) � Java Message Service 1.0.2 � The JMS is a messaging standard that allows J2EE application components to create, send, receive, and read messages. It enables distributed communication that is loosely coupled, reliable, and asynchronous. Department of Informatics

  16. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (9) � Java API for XML Processing 1.1 � XML is a language for representing text-based data so the data can be read and handled by any program or tool. Programs and tools can generate XML documents that other programs and tools can read and handle. � The Java API for XML Processing ("JAXP") supports processing of XML documents using DOM, SAX, and XSLT. JAXP enables applications to parse and transform XML documents independent of a particular XML processing implementation. Department of Informatics

  17. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (10) � J2EE Connector Architecture 1.0 The J2EE Connector architecture is used by J2EE tools � vendors and system integrators to create resource adapters that support access to enterprise information systems that can be plugged into any J2EE product. A resource adapter is a software component that allows J2EE � application components to access and interact with the underlying resource manager. Because a resource adapter is specific to its resource � manager, there is typically a different resource adapter for each type of database or enterprise information system. Department of Informatics

  18. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (11) � Java Authentication and Authorization Service 1.0 � The Java Authentication and Authorization Service ("JAAS") provides a way for a J2EE application to authenticate and authorize a specific user or group of users to run it. � JAAS is a Java programming language version of the standard Pluggable Authentication Module (PAM) framework that extends the Java 2 Platform security architecture to support user-based authorization. Department of Informatics

  19. 3. J2EE: Vue d'ensemble 3.3 Service garantis par J2EE Services standards J2EE (12) � Java Transaction API 1.0 The Java Transaction API ("JTA") provides a standard � interface for demarcating transactions. The J2EE architecture provides a default auto commit to � handle transaction commits and rollbacks. An auto commit means that any other applications viewing data will see the updated data after each database read or write operation. However, if your application performs two separate database � access operations that depend on each other, you will want to use the JTA API to demarcate where the entire transaction, including both operations, begins, rolls back, and commits. Department of Informatics

  20. 3. J2EE: Vue d'ensemble 3.5 Déploiement XML Déploiement � One of the biggest changes between EJB 1.0 and 1.1 is the introduction of XML deployment descriptors, that means, from a procedural to a descriptive way to describe deployment. � XML deployment descriptors are much easier to edit, even without special tools for editing XML files. An XML deployment descriptor is simple enough that it's easy to create a descriptor using nothing more than your favorite text editor, be it Notepad, Emacs, or vi. � We will further discuss what goes into an XML deployment descriptor; in particuliar we will see how to write deployment descriptors for our beans. Department of Informatics

  21. Plan 1. Application Servers 2. J2EE: Vue d’ensemble 3. Servlets, JSP, JDBC 4. Distributed Programming 5. Enterprise JavaBeans 6. Prise de recul critique Department of Informatics

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend