Java EE 7 introduction

Moumie Soulemane
Moumie SoulemaneProgrammer um Islamic University of Technology
JAVA EE 7 Enterprise
What is
?
About me
 Soulemane Moumie
 Programmer
Blogger
Open source advocate
 www.moumie.org
Seite 1
Seite 2
Introduction
In the world of information technology, enterprise applications must be
designed, built, and produced for less money, with greater speed, and with
fewer resources.
In this regard, Java EE platform aims at providing developers with a powerful
set of APIs while shortening development time, reducing application
complexity, and improving application performance.
Seite 3
Java EE 7 Platform
A platform is a group of technologies that are used as a base upon
which other applications, processes or technologies are developed.
The most important goal of the Java EE 7 platform is to simplify
development by providing a common foundation for the various kinds
of components in the Java EE platform. This platform is regularly
update through the addition of new technologies or new features to
existing technologies.
Java EE Application Model
Application model is a notation and rules for expressing the conceptual and
implementation architectures of an application.
The Java EE application model begins with the Java programming language
and the Java virtual machine. This model defines an architecture for
implementing services as multitier applications divided into the following
parts:
- The business and presentation logic to be implemented by the developer.
- The standard system services provided by the Java EE platform.
The developer can rely on the platform to provide solutions for the hard systems-level problems of
developing a multitier service.
Seite 4
Distributed Multitiered
Applications
Seite 5
Java EE multitiered applications are generally considered to be three-tiered applications
because they are distributed over three locations
Security
• The Java EE platform provides standard declarative access control rules that are defined by
the developer and interpreted when the application is deployed on the server.
• Java EE also provides standard login mechanisms so that application developers do not have to
implement these mechanisms in their applications.
• All these features make the Java EE platform applications portable to a wide variety of
security implementations
Seite 6
Java EE Components
• A Java EE component is a self-contained functional software unit that is assembled into a Java
EE application with its related classes and files and that communicates with other components.
• The Java EE specification defines the following Java EE components:
- Application clients and applets are components that run on the client.
- Java Servlet, Java Server Faces, and Java Server Pages (JSP) technology components
are web components that run on the server.
- EJB components (enterprise beans) are business components that run on the server.
Java EE Clients
• Web Clients
- Dynamic web pages containing various types of markup language (HTML, XML,
…), which are generated by web components running in the web tier. This web page
can include an applet . An applet is a small client application written in java that
executes in the Java virtual machine installed in the web browser.
- Web browser, which renders the pages received from the server.
• Application Clients
An application client runs on a client machine and provides a way for users to
handle tasks that require a richer user interface than can be provided by a markup
language. The GUI created from the Swing API or the Abstract Window Toolkit
(AWT) API, but a command-line interface is certainly possible.
Seite 7
Data flow
• The JavaBeans Component Architecture
JavaBeans components have properties and have get and set methods for accessing
those properties. They are used to manage the data flow between the following:
- An application client or applet and components running on the Java EE server
- Server components and a database
• Java EE Server Communications
- The client communicates with the business tier running on the Java EE server either
directly.
- or, as in the case of a client running in a browser, by going through web pages or
Servlets running in the web tier.
Seite 8
Web Components
• Servlets are Java programming language classes that dynamically process requests
and construct responses.
• JSP pages are text-based documents that execute as Servlets but allow a more
natural approach to creating static content.
• Java Server Faces technology builds on servlets and JSP technology and provides a
user interface component framework for web applications.
Important:
Static HTML pages ,applets, Server-side utility classes are bundled with web
components during application assembly but are not considered web components by
the Java EE specification.
Seite 9
Business Components
Business code, which is logic that solves or meets the needs of a particular
business domain such as banking, retail, or finance is handled by enterprise
beans running in either the business tier or the web tier. These enterprises
bean also retrieves/sends data from/to storage, processes it (if necessary),
and sends it back to the client program.
Enterprise Information System Tier
The enterprise information system tier handles EIS software and includes
enterprise infrastructure systems, such as ERP, mainframe ,transaction
processing, database systems
Seite 10
Java EE Containers
Containers are the interface between a component and the low-level, platform-specific
functionality that supports the component. The deployment process installs Java EE
application components in the Java EE containers, the server and containers are as
follows:
- Java EE Server: The runtime portion of a Java EE product. A Java EE server
provides EJB and web containers
- EJB Container: Manages the execution of enterprise beans for Java EE applications.
- Web Container: Manages the execution of web pages, servlets, and some EJB
components for Java EE applications.
- Web Application client container: Manages the execution of application client
components . Application clients and their container run on the client.
- Applet Container: Manages the execution of applets. Consists of a web browser
and a Java Plug-in running on the client together.
Seite 11
Java EE Containers Services
.
- The Java EE security model
- The Java EE transaction model
- The Java EE remote connectivity model
- Web JNDI lookup services provide a unified interface to multiple naming and
directory services in the enterprise so that application components can access these
services.
Seite 12
Web Services Support
Web Services are web-based enterprise applications that use open, XML-based
standards and transport protocols to exchange data with calling clients. These XML-
based standards and protocols are:
- XML: Extensible Markup Language (XML) is a cross-platform, extensible, text-based
standard for representing data.
- SOAP Transport Protocol: SOAP is an XML-based protocol that follows the HTTP
request-and-response model. Client requests and web service responses are
transmitted as Simple Object Access Protocol (SOAP) messages over HTTP.
- WSDL Standard Format: The Web Services Description Language (WSDL) is a
standardized XML format for describing network services (name, location,
communication ways). WSDL service descriptions can be published on the Web.
It can be generated using Glassfish server.
Seite 13
Java EE Application Assembly and
Deployment
A Java EE application is packaged into one or more standard units for deployment to any
Java EE platform-compliant system.
Deployment typically involves using a platform's deployment tool to specify location-
specific information, such as a list of local users who can access it and the name of
the local database. For deployment purpose, J2EE applications are delivered and
reside in Archive files (or unit).
Seite 14
J2EE Archive Type File
Extension
Module Type
Enterprise archive EAR All modules together
Java Archive JAR Enterprise Bean Module,
Application Client module
Web Archive WAR Web module
Resource Adapter RAR Resource adapter module
Java EE 7 APIs
 Enterprise JavaBeans Technology.
 Java Servlet Technology
 JavaServer Faces Technology
 JavaServer Pages Technology
 JavaServer Pages Standard Tag Library
 Java Persistence API
 Java Transaction API
 Java API for RESTful Web Services
 Managed Beans
 Contexts and Dependency Injection for
Java EE
 Dependency Injection for Java
 Bean Validation
 Java Message Service API
 Java EE Connector Architecture
 JavaMail API
 Java Authorization Contract for
Containers
 Java Authentication Service Provider
Interface for Containers
 Java API for WebSocket
 Java API for JSON Processing
 Concurrency Utilities for Java EE
 Batch Applications for the Java Platform
Seite 15
Java EE 7 APIs in the Java Platform,
Standard Edition 7
Several APIs that are required by the Java EE 7 platform are included in the Java
Platform, Standard Edition 7 (Java SE 7) and are thus available to Java EE
applications.
 Java Database Connectivity API.
 Java Naming and Directory Interface API
 JavaBeans Activation Framework
 Java API for XML Processing
 Java Architecture for XML Binding
 Java API for XML Web Services
 SOAP with Attachments API for Java
 Java Authentication and Authorization Service
 Common Annotations for the Java Platform
Seite 16
GlassFish Server Tools
GlassFish Server is a compliant implementation of the Java EE 7 platform. In addition to
supporting all the APIs described in the previous sections.
 Administration Console: web-based GUI GlassFish Server administration utility.
 asadmin: command-line administration utility is used to start and stop GlassFish
Server and to manage users, resources, and applications.
 appclient: launches the application client container and invokes the client application
 capture-schema: extract schema information from a database, producing a schema
file that GlassFish Server can use for container-managed persistence.
 package-appclient: package the application client container libraries and JAR files.
 Java DB database: a copy of the Java DB server.
 xjc: transform, or bind, a source XML schema to a set of JAXB content classes in java
 schemagen: create a schema file for each namespace referenced in your Java
classes.
 wsimport: generate JAX-WS portable artifacts for a given WSDL file.
 wsgen: read a web service endpoint class and generate all the required JAX-WS
Seite 17
Value to Developers
• Secure Solutions
• Concentrate on business logic/solution,
yielding
• better productivity
• Choice of databases and components
• Use of existing investments
Seite 18
References
https://docs.oracle.com/javaee/7/tutorial/
Seite 19
Thank
You ! Seite 20
1 von 21

Recomendados

Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE von
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEIntelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCE
Intelligent Agent PPT ON SLIDESHARE IN ARTIFICIAL INTELLIGENCEKhushboo Pal
9.9K views29 Folien
Agents in Artificial intelligence von
Agents in Artificial intelligence Agents in Artificial intelligence
Agents in Artificial intelligence Lalit Birla
2.4K views12 Folien
Part Picking Robot von
Part Picking RobotPart Picking Robot
Part Picking RobotTareque Rahman
8.2K views11 Folien
Applet Architecture - Introducing Java Applets von
Applet Architecture - Introducing Java AppletsApplet Architecture - Introducing Java Applets
Applet Architecture - Introducing Java Appletsamitksaha
32.6K views17 Folien
Code optimization von
Code optimizationCode optimization
Code optimizationveena venugopal
17.3K views24 Folien

Más contenido relacionado

Was ist angesagt?

enterprise java bean von
enterprise java beanenterprise java bean
enterprise java beanJitender Singh Lodhi
3K views31 Folien
.Net Overview -- Training (Lesson 1) von
.Net Overview -- Training (Lesson 1).Net Overview -- Training (Lesson 1)
.Net Overview -- Training (Lesson 1)Rishi Kothari
1.6K views22 Folien
The structure of agents von
The structure of agentsThe structure of agents
The structure of agentsAnitha Purushothaman
18.9K views16 Folien
Core java course syllabus von
Core java course syllabusCore java course syllabus
Core java course syllabusPapitha Velumani
32.4K views5 Folien
Servlet life cycle von
Servlet life cycleServlet life cycle
Servlet life cycleVenkateswara Rao N
771 views35 Folien
Vectors in Java von
Vectors in JavaVectors in Java
Vectors in JavaAbhilash Nair
8.7K views12 Folien

Was ist angesagt?(20)

.Net Overview -- Training (Lesson 1) von Rishi Kothari
.Net Overview -- Training (Lesson 1).Net Overview -- Training (Lesson 1)
.Net Overview -- Training (Lesson 1)
Rishi Kothari1.6K views
Introduction to ASP.NET von Rajkumarsoy
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
Rajkumarsoy16.9K views
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf von JenishaR1
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdfUNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
UNIT - I PROBLEM SOLVING AGENTS and EXAMPLES.pptx.pdf
JenishaR1499 views
Artificial Intelligence -- Search Algorithms von Syed Ahmed
Artificial Intelligence-- Search Algorithms Artificial Intelligence-- Search Algorithms
Artificial Intelligence -- Search Algorithms
Syed Ahmed4.3K views
JDBC: java DataBase connectivity von Tanmoy Barman
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
Tanmoy Barman30.6K views
Heuristic Search Techniques {Artificial Intelligence} von FellowBuddy.com
Heuristic Search Techniques {Artificial Intelligence}Heuristic Search Techniques {Artificial Intelligence}
Heuristic Search Techniques {Artificial Intelligence}
FellowBuddy.com32.6K views
Hebbian Learning von ESCOM
Hebbian LearningHebbian Learning
Hebbian Learning
ESCOM30.5K views
Multi-agent systems von R A Akerkar
Multi-agent systemsMulti-agent systems
Multi-agent systems
R A Akerkar9.5K views
Introduction to loaders von Tech_MX
Introduction to loadersIntroduction to loaders
Introduction to loaders
Tech_MX94.6K views
Knowledge representation In Artificial Intelligence von Ramla Sheikh
Knowledge representation In Artificial IntelligenceKnowledge representation In Artificial Intelligence
Knowledge representation In Artificial Intelligence
Ramla Sheikh15.8K views
Master method theorem von Rajendran
Master method theoremMaster method theorem
Master method theorem
Rajendran 8.4K views

Destacado

Fabulas von
FabulasFabulas
Fabulasbenvinda1
464 views2 Folien
Ettore Reginaldo Tedeschi indica: visite Veneza von
Ettore Reginaldo Tedeschi indica: visite VenezaEttore Reginaldo Tedeschi indica: visite Veneza
Ettore Reginaldo Tedeschi indica: visite VenezaEttoreTedeschi
258 views6 Folien
1 von
11
1Matheus Tavares
205 views5 Folien
Missão cumprida! von
Missão cumprida!Missão cumprida!
Missão cumprida!Rogerio Rodrigues
153 views1 Folie
Danissa von
DanissaDanissa
Danissahghfhgjhk
157 views1 Folie
Las profesiones del futuro von
Las profesiones del futuroLas profesiones del futuro
Las profesiones del futuroAlex Arias
189 views10 Folien

Similar a Java EE 7 introduction

Web programming and development - Introduction von
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - IntroductionJoel Briza
1.7K views36 Folien
J2EE Architecture Explained von
J2EE  Architecture ExplainedJ2EE  Architecture Explained
J2EE Architecture ExplainedAdarsh Kr Sinha
1.4K views8 Folien
Introduction to java ee von
Introduction to java eeIntroduction to java ee
Introduction to java eeRanjan Kumar
2.9K views30 Folien
Enterprice java von
Enterprice javaEnterprice java
Enterprice javaGowriLatha1
49 views14 Folien
IBM Websphere introduction and installation for beginners von
IBM Websphere introduction and installation for beginnersIBM Websphere introduction and installation for beginners
IBM Websphere introduction and installation for beginnersShubham Gupta
40.7K views29 Folien
Java J2EE von
Java J2EEJava J2EE
Java J2EESandeep Rawat
2K views23 Folien

Similar a Java EE 7 introduction(20)

Web programming and development - Introduction von Joel Briza
Web programming and development - IntroductionWeb programming and development - Introduction
Web programming and development - Introduction
Joel Briza1.7K views
Introduction to java ee von Ranjan Kumar
Introduction to java eeIntroduction to java ee
Introduction to java ee
Ranjan Kumar2.9K views
IBM Websphere introduction and installation for beginners von Shubham Gupta
IBM Websphere introduction and installation for beginnersIBM Websphere introduction and installation for beginners
IBM Websphere introduction and installation for beginners
Shubham Gupta40.7K views
Project report for final year project von suneel singh
Project report for final year projectProject report for final year project
Project report for final year project
suneel singh317 views
Enterprise java unit-1_chapter-1 von sandeep54552
Enterprise java unit-1_chapter-1Enterprise java unit-1_chapter-1
Enterprise java unit-1_chapter-1
sandeep54552727 views
Intorduction to struts von Anup72
Intorduction to strutsIntorduction to struts
Intorduction to struts
Anup723.4K views
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt von KalsoomTahir2
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
KalsoomTahir23 views
Ppt for Online music store von ADEEBANADEEM
Ppt for Online music storePpt for Online music store
Ppt for Online music store
ADEEBANADEEM3.7K views
Enterprise application developement von Archana Jha
Enterprise application developementEnterprise application developement
Enterprise application developement
Archana Jha166 views
Lecture 19 dynamic web - java - part 1 von Д. Ганаа
Lecture 19   dynamic web - java - part 1Lecture 19   dynamic web - java - part 1
Lecture 19 dynamic web - java - part 1
Д. Ганаа1.6K views
Websphereinterview 100725022705-phpapp02 von kishore2526
Websphereinterview 100725022705-phpapp02Websphereinterview 100725022705-phpapp02
Websphereinterview 100725022705-phpapp02
kishore25265.5K views
Introduction Java Web Framework and Web Server. von suranisaunak
Introduction Java Web Framework and Web Server.Introduction Java Web Framework and Web Server.
Introduction Java Web Framework and Web Server.
suranisaunak820 views
J2 EEE SIDES von bputhal
J2 EEE  SIDESJ2 EEE  SIDES
J2 EEE SIDES
bputhal3.5K views

Más de Moumie Soulemane

Graph based data models von
Graph based data modelsGraph based data models
Graph based data modelsMoumie Soulemane
1.7K views88 Folien
Developing a real time application on the cloud using node js , socket.io and... von
Developing a real time application on the cloud using node js , socket.io and...Developing a real time application on the cloud using node js , socket.io and...
Developing a real time application on the cloud using node js , socket.io and...Moumie Soulemane
382 views36 Folien
Mobile web development von
Mobile web development Mobile web development
Mobile web development Moumie Soulemane
358 views69 Folien
Java ee introduction von
Java ee introductionJava ee introduction
Java ee introductionMoumie Soulemane
483 views21 Folien
Kids Psychology: how they learn von
Kids Psychology: how they learnKids Psychology: how they learn
Kids Psychology: how they learnMoumie Soulemane
441 views20 Folien
Performance evaluation of an app for kids learning using BPMN von
Performance evaluation of an app for kids learning using BPMNPerformance evaluation of an app for kids learning using BPMN
Performance evaluation of an app for kids learning using BPMNMoumie Soulemane
686 views1 Folie

Más de Moumie Soulemane(10)

Developing a real time application on the cloud using node js , socket.io and... von Moumie Soulemane
Developing a real time application on the cloud using node js , socket.io and...Developing a real time application on the cloud using node js , socket.io and...
Developing a real time application on the cloud using node js , socket.io and...
Moumie Soulemane382 views
Performance evaluation of an app for kids learning using BPMN von Moumie Soulemane
Performance evaluation of an app for kids learning using BPMNPerformance evaluation of an app for kids learning using BPMN
Performance evaluation of an app for kids learning using BPMN
Moumie Soulemane686 views
Software engineering in the context of production economic von Moumie Soulemane
Software engineering in the context of production economicSoftware engineering in the context of production economic
Software engineering in the context of production economic
Moumie Soulemane280 views
Software engineering in the context of production economics von Moumie Soulemane
Software engineering in the context of production economicsSoftware engineering in the context of production economics
Software engineering in the context of production economics
Moumie Soulemane762 views
University Cafeteria Operations using Business Process Model and Notation (B... von Moumie Soulemane
University Cafeteria Operations  using Business Process Model and Notation (B...University Cafeteria Operations  using Business Process Model and Notation (B...
University Cafeteria Operations using Business Process Model and Notation (B...
Moumie Soulemane1.6K views

Último

NTGapps NTG LowCode Platform von
NTGapps NTG LowCode Platform NTGapps NTG LowCode Platform
NTGapps NTG LowCode Platform Mustafa Kuğu
474 views30 Folien
Telenity Solutions Brief von
Telenity Solutions BriefTelenity Solutions Brief
Telenity Solutions BriefMustafa Kuğu
14 views10 Folien
Evaluation of Quality of Experience of ABR Schemes in Gaming Stream von
Evaluation of Quality of Experience of ABR Schemes in Gaming StreamEvaluation of Quality of Experience of ABR Schemes in Gaming Stream
Evaluation of Quality of Experience of ABR Schemes in Gaming StreamAlpen-Adria-Universität
44 views34 Folien
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... von
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...ShapeBlue
120 views12 Folien
The Coming AI Tsunami.pptx von
The Coming AI Tsunami.pptxThe Coming AI Tsunami.pptx
The Coming AI Tsunami.pptxjohnhandby
14 views12 Folien
Future of AR - Facebook Presentation von
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook PresentationRob McCarty
66 views27 Folien

Último(20)

NTGapps NTG LowCode Platform von Mustafa Kuğu
NTGapps NTG LowCode Platform NTGapps NTG LowCode Platform
NTGapps NTG LowCode Platform
Mustafa Kuğu474 views
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And... von ShapeBlue
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
Enabling DPU Hardware Accelerators in XCP-ng Cloud Platform Environment - And...
ShapeBlue120 views
The Coming AI Tsunami.pptx von johnhandby
The Coming AI Tsunami.pptxThe Coming AI Tsunami.pptx
The Coming AI Tsunami.pptx
johnhandby14 views
Future of AR - Facebook Presentation von Rob McCarty
Future of AR - Facebook PresentationFuture of AR - Facebook Presentation
Future of AR - Facebook Presentation
Rob McCarty66 views
PCCC23:日本AMD株式会社 テーマ1「AMD Instinct™ アクセラレーターの概要」 von PC Cluster Consortium
PCCC23:日本AMD株式会社 テーマ1「AMD Instinct™ アクセラレーターの概要」PCCC23:日本AMD株式会社 テーマ1「AMD Instinct™ アクセラレーターの概要」
PCCC23:日本AMD株式会社 テーマ1「AMD Instinct™ アクセラレーターの概要」
AI + Memoori = AIM von Memoori
AI + Memoori = AIMAI + Memoori = AIM
AI + Memoori = AIM
Memoori15 views
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... von ShapeBlue
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
ShapeBlue209 views
Digital Personal Data Protection (DPDP) Practical Approach For CISOs von Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash171 views
Business Analyst Series 2023 - Week 4 Session 7 von DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10152 views
Business Analyst Series 2023 - Week 4 Session 8 von DianaGray10
Business Analyst Series 2023 -  Week 4 Session 8Business Analyst Series 2023 -  Week 4 Session 8
Business Analyst Series 2023 - Week 4 Session 8
DianaGray10180 views
LLMs in Production: Tooling, Process, and Team Structure von Aggregage
LLMs in Production: Tooling, Process, and Team StructureLLMs in Production: Tooling, Process, and Team Structure
LLMs in Production: Tooling, Process, and Team Structure
Aggregage65 views
PCCC23:日本AMD株式会社 テーマ2「AMD EPYC™ プロセッサーを用いたAIソリューション」 von PC Cluster Consortium
PCCC23:日本AMD株式会社 テーマ2「AMD EPYC™ プロセッサーを用いたAIソリューション」PCCC23:日本AMD株式会社 テーマ2「AMD EPYC™ プロセッサーを用いたAIソリューション」
PCCC23:日本AMD株式会社 テーマ2「AMD EPYC™ プロセッサーを用いたAIソリューション」
The Role of Patterns in the Era of Large Language Models von Yunyao Li
The Role of Patterns in the Era of Large Language ModelsThe Role of Patterns in the Era of Large Language Models
The Role of Patterns in the Era of Large Language Models
Yunyao Li104 views
Innovation & Entrepreneurship strategies in Dairy Industry von PervaizDar1
Innovation & Entrepreneurship strategies in Dairy IndustryInnovation & Entrepreneurship strategies in Dairy Industry
Innovation & Entrepreneurship strategies in Dairy Industry
PervaizDar139 views

Java EE 7 introduction

  • 1. JAVA EE 7 Enterprise What is ?
  • 2. About me  Soulemane Moumie  Programmer Blogger Open source advocate  www.moumie.org Seite 1
  • 3. Seite 2 Introduction In the world of information technology, enterprise applications must be designed, built, and produced for less money, with greater speed, and with fewer resources. In this regard, Java EE platform aims at providing developers with a powerful set of APIs while shortening development time, reducing application complexity, and improving application performance.
  • 4. Seite 3 Java EE 7 Platform A platform is a group of technologies that are used as a base upon which other applications, processes or technologies are developed. The most important goal of the Java EE 7 platform is to simplify development by providing a common foundation for the various kinds of components in the Java EE platform. This platform is regularly update through the addition of new technologies or new features to existing technologies.
  • 5. Java EE Application Model Application model is a notation and rules for expressing the conceptual and implementation architectures of an application. The Java EE application model begins with the Java programming language and the Java virtual machine. This model defines an architecture for implementing services as multitier applications divided into the following parts: - The business and presentation logic to be implemented by the developer. - The standard system services provided by the Java EE platform. The developer can rely on the platform to provide solutions for the hard systems-level problems of developing a multitier service. Seite 4
  • 6. Distributed Multitiered Applications Seite 5 Java EE multitiered applications are generally considered to be three-tiered applications because they are distributed over three locations
  • 7. Security • The Java EE platform provides standard declarative access control rules that are defined by the developer and interpreted when the application is deployed on the server. • Java EE also provides standard login mechanisms so that application developers do not have to implement these mechanisms in their applications. • All these features make the Java EE platform applications portable to a wide variety of security implementations Seite 6 Java EE Components • A Java EE component is a self-contained functional software unit that is assembled into a Java EE application with its related classes and files and that communicates with other components. • The Java EE specification defines the following Java EE components: - Application clients and applets are components that run on the client. - Java Servlet, Java Server Faces, and Java Server Pages (JSP) technology components are web components that run on the server. - EJB components (enterprise beans) are business components that run on the server.
  • 8. Java EE Clients • Web Clients - Dynamic web pages containing various types of markup language (HTML, XML, …), which are generated by web components running in the web tier. This web page can include an applet . An applet is a small client application written in java that executes in the Java virtual machine installed in the web browser. - Web browser, which renders the pages received from the server. • Application Clients An application client runs on a client machine and provides a way for users to handle tasks that require a richer user interface than can be provided by a markup language. The GUI created from the Swing API or the Abstract Window Toolkit (AWT) API, but a command-line interface is certainly possible. Seite 7
  • 9. Data flow • The JavaBeans Component Architecture JavaBeans components have properties and have get and set methods for accessing those properties. They are used to manage the data flow between the following: - An application client or applet and components running on the Java EE server - Server components and a database • Java EE Server Communications - The client communicates with the business tier running on the Java EE server either directly. - or, as in the case of a client running in a browser, by going through web pages or Servlets running in the web tier. Seite 8
  • 10. Web Components • Servlets are Java programming language classes that dynamically process requests and construct responses. • JSP pages are text-based documents that execute as Servlets but allow a more natural approach to creating static content. • Java Server Faces technology builds on servlets and JSP technology and provides a user interface component framework for web applications. Important: Static HTML pages ,applets, Server-side utility classes are bundled with web components during application assembly but are not considered web components by the Java EE specification. Seite 9
  • 11. Business Components Business code, which is logic that solves or meets the needs of a particular business domain such as banking, retail, or finance is handled by enterprise beans running in either the business tier or the web tier. These enterprises bean also retrieves/sends data from/to storage, processes it (if necessary), and sends it back to the client program. Enterprise Information System Tier The enterprise information system tier handles EIS software and includes enterprise infrastructure systems, such as ERP, mainframe ,transaction processing, database systems Seite 10
  • 12. Java EE Containers Containers are the interface between a component and the low-level, platform-specific functionality that supports the component. The deployment process installs Java EE application components in the Java EE containers, the server and containers are as follows: - Java EE Server: The runtime portion of a Java EE product. A Java EE server provides EJB and web containers - EJB Container: Manages the execution of enterprise beans for Java EE applications. - Web Container: Manages the execution of web pages, servlets, and some EJB components for Java EE applications. - Web Application client container: Manages the execution of application client components . Application clients and their container run on the client. - Applet Container: Manages the execution of applets. Consists of a web browser and a Java Plug-in running on the client together. Seite 11
  • 13. Java EE Containers Services . - The Java EE security model - The Java EE transaction model - The Java EE remote connectivity model - Web JNDI lookup services provide a unified interface to multiple naming and directory services in the enterprise so that application components can access these services. Seite 12
  • 14. Web Services Support Web Services are web-based enterprise applications that use open, XML-based standards and transport protocols to exchange data with calling clients. These XML- based standards and protocols are: - XML: Extensible Markup Language (XML) is a cross-platform, extensible, text-based standard for representing data. - SOAP Transport Protocol: SOAP is an XML-based protocol that follows the HTTP request-and-response model. Client requests and web service responses are transmitted as Simple Object Access Protocol (SOAP) messages over HTTP. - WSDL Standard Format: The Web Services Description Language (WSDL) is a standardized XML format for describing network services (name, location, communication ways). WSDL service descriptions can be published on the Web. It can be generated using Glassfish server. Seite 13
  • 15. Java EE Application Assembly and Deployment A Java EE application is packaged into one or more standard units for deployment to any Java EE platform-compliant system. Deployment typically involves using a platform's deployment tool to specify location- specific information, such as a list of local users who can access it and the name of the local database. For deployment purpose, J2EE applications are delivered and reside in Archive files (or unit). Seite 14 J2EE Archive Type File Extension Module Type Enterprise archive EAR All modules together Java Archive JAR Enterprise Bean Module, Application Client module Web Archive WAR Web module Resource Adapter RAR Resource adapter module
  • 16. Java EE 7 APIs  Enterprise JavaBeans Technology.  Java Servlet Technology  JavaServer Faces Technology  JavaServer Pages Technology  JavaServer Pages Standard Tag Library  Java Persistence API  Java Transaction API  Java API for RESTful Web Services  Managed Beans  Contexts and Dependency Injection for Java EE  Dependency Injection for Java  Bean Validation  Java Message Service API  Java EE Connector Architecture  JavaMail API  Java Authorization Contract for Containers  Java Authentication Service Provider Interface for Containers  Java API for WebSocket  Java API for JSON Processing  Concurrency Utilities for Java EE  Batch Applications for the Java Platform Seite 15
  • 17. Java EE 7 APIs in the Java Platform, Standard Edition 7 Several APIs that are required by the Java EE 7 platform are included in the Java Platform, Standard Edition 7 (Java SE 7) and are thus available to Java EE applications.  Java Database Connectivity API.  Java Naming and Directory Interface API  JavaBeans Activation Framework  Java API for XML Processing  Java Architecture for XML Binding  Java API for XML Web Services  SOAP with Attachments API for Java  Java Authentication and Authorization Service  Common Annotations for the Java Platform Seite 16
  • 18. GlassFish Server Tools GlassFish Server is a compliant implementation of the Java EE 7 platform. In addition to supporting all the APIs described in the previous sections.  Administration Console: web-based GUI GlassFish Server administration utility.  asadmin: command-line administration utility is used to start and stop GlassFish Server and to manage users, resources, and applications.  appclient: launches the application client container and invokes the client application  capture-schema: extract schema information from a database, producing a schema file that GlassFish Server can use for container-managed persistence.  package-appclient: package the application client container libraries and JAR files.  Java DB database: a copy of the Java DB server.  xjc: transform, or bind, a source XML schema to a set of JAXB content classes in java  schemagen: create a schema file for each namespace referenced in your Java classes.  wsimport: generate JAX-WS portable artifacts for a given WSDL file.  wsgen: read a web service endpoint class and generate all the required JAX-WS Seite 17
  • 19. Value to Developers • Secure Solutions • Concentrate on business logic/solution, yielding • better productivity • Choice of databases and components • Use of existing investments Seite 18