Documents
Documents
Documents
Chapter
1
Understanding
Java EE
Chapter Outline
1.1 What is an Enterprise Application?
AL Árchitecture of an Enterprise Application
1.3 What is Java Enterprise Edition?
A4 Java EE Technologies
1.5 Java EE Evolution
1.6 Glassfish Server
1.7 Chapter Based Questions
Java EE platform, for cxample, in Java SEapplications. The Java Data Objects (JDO) APIis
another standard for Java persistence, devclopcd under the Java Community Process.
# Java Message Service API: The Java Message Service (JMS) API is a messaging standard
that allows application components based on the Java 2 Platform, Enterprise Edition (JI2EE)
to create, scnd, receive, and read messages. It cnables distributed communication that is
looscly coupled, reliablc, and asynchronous.
Java Transaction API(JTA): JTA specifies standard Java interfaces between a transaction
manager and the parties involved in a distributcd transaction system: the resource manager,
the application server, and the transactional applications. The JTA specification was
developcd by Sun Microsystems in cooperation with leading industry partners in the
transaction proccssing and databasc system arcna.
3. Java EE Web Services Technologies
Java API for RESTful Web Services (JAX-RS): Java API for RESTful Web Services
(JAX-RSJ defincs APIs for the development of web services built according to the
Representational State Transfer IRFSTI architectural style.
Java API for XM-Based Web Services (JAX-WS): It provides support for web services
using the SOAP/HTTP protocol.
Java API for XML Registries (JAXR): The JAXR API provides a set of distributed
registry services that enables business-to-business integration.
4. Java EE Management and Security Technologies
a standard
Java Authentication Service Provider Interface for Containers: To define
interface by which authentication modules may be integrated with containers such that these
modules may establish the authentication identities used by containers.
Contract for
Java Authorization Contract for Containers: The Java Authorization
Containcrs (Java ACC) specification defines new java.security.Permission classes to satisfy
the Java 2 Platform, Enterprise Edition (J2EE) authorization model. The Java ACC
specification defines the binding of container access decisions to operations on instances of
these permission classes. It defines the semantics of policy providers that employ the new
permission classes to address the authorization requirements of J2EE.
1. Java EE5
It ís íntroduced in May 11, 2006 by Oracle.
The ain of the Java EH 5 platform is to provide developers a powerful set of APIs while
reducing development time, rcducing application complexity, and improving application
performane,
6
Enterprise JAVA
Java EE 5 SDK
Features
First robust,
commercial, compatible Java EE 5implementation. It is free for
2
deployment, and redistribution.
Ease of development with major revamp of programming model.
development,
3
EJB 3.0 support for POJOs means less to learn, less to code, and less to
4 naintain.
New Java Persistence API makes obicct-relational mapping cleaner and
casicr.
New and updated web services (JAX-wS 2.0 and JAXB 2.0) simplifies SOA
6
JavaServer Faces 1.2 facilitates building Web 2.0 applications with Ajax. implementation
7.
Higher throughput, faster response time, and improved management features to
deployment. streamline
8 30 percent faster startup time with 30
percent less
9. Web services performance increased by up to 5 memory
10. times.
Improved web services management.
I1. Integrated with Sun's NetBeans open
source IDE and supports an Eclipse plug-in,
developers the choice of complete end-to-end development and
offering
12.
Provides a visual SOA development and deployment runtime environment.
environment. environment with integrated NetBeans
13. Integrated composite
14. The code for
application support through JBI and BPEL
Sun GlassFish Enterprise Server
source Project GlassFish. v2.1.1 is 100 percent derived from open
2. Java EE6
It is introduced in December 10,
2009.
The most important goal of the Java
EE 6
acommnon
foundation for the various kinds platform is to
of componentssimplify development by
Developers benefit from productivity in the Java EE platform. providing
improvements with more annotations and less XML
configuration, more Plain Old Java Objects
Features of Java EE6 (POJOs), and simplified packaging.
1. Profiles: configurations
of Java EE
Specificaly, the Java EE 6the platform platform targeted at specific classes of
generation web
applications, as well introduces
as a
a
lightweight
Full Profile
applications.
Web Profile targeted at next-
and provides the ful! power of the that contains all
2. New Java EE 6platform for Java EE technologes
technologies, including the
(a) Java API for following: enterprise applications.
RESTful Web Services (JAX-RS)
(b) Managed Beans
(c) Contexts and
known as CD! Dependency Injection for the Java EE
(d) Dependency njection for Java (JSR 330) Platform (JSR 299), informally
(e) Bean Validation (JSR 303)
() Java Authentication Service
Provider Interface for
Containers (JASPIC)
Understarnding Java EE
Glassfish Server Open Source Edition is an open source application server built within the
GlassFish community.
Oracle GlassFish Server is based on GlassFish Server Open Source Edition.
GlassFish Server users benefit from a vibrant community that offers self-support,
contributes code and product features, product ideas and feedback, bug reports, and more.
It is a free, dual-licenscd software under the GNUGeneral Public License (GPL) and the
Common Development and Distribution License (CDDL). GlassFish was acquired by
Oracle in 2010.
GlassFish was developed based on a source code that was released by Sun and Oracle's
Toplink persistence system.
The projcct was launched in 2005 and the first version that supported Java EE S was
released in 2006.
The reference implementation of Java EE is GlassFish, so it supports JMS, JavaServer Pages,
Enterprise JavaBcans, RMI, JPA and serviets. Because of its nature, developers can create
scalable and portable applications that casily integrate with legacy systems and technologies.
Oracle GlassFish Server provides a server for the development and deployment of Java
Platform, Enterprise Edition (Java EE platform) applications and web technologies based on
Java technology.
GlassFish Server 3.1 provides the following:
A lightweight and extensible core based on OSGi (Open Service Gateway Initiative)
Alliance standards
Aweb container
An easy-to-use Administration Console for configuration and management
Update Tool connectivity for updates and add-on components
Support for high availability clustering and load balancing
Features and Resources
GlassFish Server 4.1 provides a server for the development and preparation of Java T"
Platform Enterprise Edition (Java EE) and dynamic and scalable HTML5 applications.
Key features inchude applied science Java seven compatibility, modularity, and rapid
repetitive development.
Main Features
GlassFish Server supports Java EE seven, which provides the basis for delivering dynamic
and scalable hypertext language applications.
For example, the Java APIfor WebSocket allows bidirectional low-latency communication.
The Java API for JSON processing simplifies information analysis for transportable
applications. The Java APIfor RESTful Net Services two.0, the performance utilities for
Java EE and Servlet 3.1l add competency options to change extremely scalable applications
to handle additional HTMLS buyers at the same time.
Java EE seven and GlassFish Server four.1 embrace the following new and updated Java
applied science standards:
10
Enterprise JAVA
New or Significant Updates
Java APIfor processing JSON
(JSON-P)
Java APIfor WebSockct Batch application for Java plattorm
Java EE Compctency Utilitics
Java Message Service (JMS) 2.0
Java APIfor RESTful Net Services
(JAX-RS)
Updated
1. Enterprise Java
Beans (EJB) 3.2
2. Contexts and Dependency
3. Java
Injection for Java EE (CDI) one.2
4.
Persistence API(JPA) 2.1
Java Server Faces (JSF) 2.2
5. Java Servlet 3.1
6.
Bean Validation (BV) 1.1
7. Language of
8.
expression (EL) 3.0
Interceptors 1.0
9. Java Transaction (JTA) one.2
10. Java Server Pages (JSP) 2.3
11. JavaMail 1.5
Modularity
1. The modular design of
Alliance and ensures thatGlassFish Server is based
the GlassFish Server onlyprimarily on the standards of the OSGi
footage required for applications that only starts with the modules than the
measures the measurement. square
2. As a result, the boot times and
the memory
3. There are lots of his services available
as
consumption decrease.
freelance services.
Fast Repetitive Development
1. Using fashion days,
such as NetBeans and Eclipse, the
simplified for the web application
2. The browser-edit-save-update.
GlassFish server allows such a simple
development cycle s
protection communication when an existing development cycle for protocol session data
application is redistributed.
1.7 Chapter Based Questions
1. Explain Enterprise application of java and its
2. Write short notes on java enterprise edition. architecture.
3. Explain java enterprise application technologies.
4. Write short notes on Java EE Evolution.
5 Explain Glass fish server and its use.