SlideShare a Scribd company logo
Glassfish, JAVA EE, Servlets, JSP, EJB
Java platform
• A Java platform comprises the JVM together with supporting
class libraries.
libraries
Java 2 Standard Edition (J2SE)
• (1999) provides core libraries for data structures, xml
parsing, security, internationalization, db connectivity, RMI
Java 2 Platform, Enterprise Edition (J2EE)
• provides more class libraries for servlets, JSPs, Enterprise
Java Beans, advanced XML

Java Platform, Enterprise Edition (Java EE)
• When Java Platform 5.0 was released (2004) the ‘2’ was
dropped from these titles.
Java platform
• A Java platform comprises the JVM together with
supporting class libraries.
libraries
Java Micro Edition (Java ME)
• comprises the necessary core libraries and tools for
writing Java for embedded systems and other small
footprint platforms, along with some specialised
libraries for specific types of device such as mobile
phones.
phones
Lecture 19   dynamic web - java - part 1
Java Web Application
A Java web application generates interactive web
pages containing various types of markup language
(HTML, XML, and so on) and dynamic content.
content
It is typically comprised of web components such as:
• JavaServer Pages (JSP)
• Servlets
• JavaBeans
to modify and temporarily store data, interact with
data
databases and web services, and render content in
services
response to client requests.
requests
https://grizzly.dev.java.net/
Lecture 19   dynamic web - java - part 1
Java EE (Enterprise Edition)
Java EE (Enterprise Edition) is a widely used
platform containing a set of coordinated
technologies that significantly reduce the cost and
complexity of:
• developing
• deploying and
• managing

Java EE 6 is supported
only by the GlassFish
server v3.x.

multitier, server-centric applications.
Java EE builds upon the Java SE platform and
provides a set of APIs (application programming
interfaces) for developing and running portable, robust,
scalable, reliable and secure server-side applications.
http://netbeans.org/kb/trails/java-ee.html
Java EE 6 Platform
• The Java EE platform uses a simplified
programming model. XML deployment
descriptors are optional. Instead, a developer
optional
can simply enter the information as
an annotation directly into a Java source file,
and the Java EE server will configure the
component at deployment and runtime
• With annotations, you put the specification
annotations
information in your code next to the program
element affected.
http://download.oracle.com/javaee/6/tutorial/doc/bnaaw.html
Java EE application model
• an architecture for implementing services as
multitier applications that deliver the scalability,
accessibility, and manageability needed by
enterprise-level applications.
• With this structure you can more easily change one
of the tiers without compromising your entire
application.
• Business and presentation logic - to be implemented
by the developer
• Standard system services – to be provided by the
Java EE platform
http://download.oracle.com/javaee/6/tutorial/doc/bnaaw.html
Lecture 19   dynamic web - java - part 1
Java Servlets
• Servlets are Java classes that dynamically
process requests and construct responses.
• Server side replacement for CGI
• Extensions to Java enabled web-servers
• Inherently multi-threaded.
multi-threaded
• One thread per request.
• Very efficient.
• Platform independent.
How do Servlets work?
• Servlets run inside a Web Container - the
component of the web server that runs and
interacts with Servlets
• Servlet is running on the server listening for
requests
• When a request comes in, a new thread is
generated by the web container.
container
Lecture 19   dynamic web - java - part 1
Java EE Containers
Java EE containers
• are the interface between a Java component
and the low-level platform-specific functionality
(i.e. transaction and state management,
multithreading, resource pooling, etc.) that
supports the component.
• provide for the separation of business logic from
resource and lifecycle management.
• this allows developers to focus on writing business logic
rather than writing enterprise infrastructure.
infrastructure
The Java EE platform uses "containers" to simplify development.
containers
http://download.oracle.com/javaee/6/tutorial/doc/bnabo.html

http://www.oracle.com/technetwork/java/javaee/javaee-faq-jsp-135209.html#diff
Java EE Containers
When a request comes in:
• a Servlet needs to be instantiated and create a new thread to
handle the request.
• call the Servlet’s doPost()or doGet() method and pass the
doPost()
HTTP request and HTTP response objects
• get the request and the response to the Servlet
• manage the life, death and resources of the Servlet
* All of the above are the tasks of the web container.
container
Java EE Containers
Java EE SERVER

From Bodoff et. al. 2005
Recall: (PHP-MySQL) Server: response
• Webserver supports HTTP.

Server
Web
server

Client

HTTP

My codes
HTML

MySQL

Operating System

Web
browser

TCP/IP

Operating
System

Internet

PHP
interpreter
Historically (Java Web App)
Server: response

• Webserver supports HTTP.

Server
GET...
Web server

Client
Web
browser

HTTP

GET...

Web
Container
Application
<html>
<head>
</head>
<body>
...
<body>
</html>

(Java code)

<html>
<head>
</head>
<body>
...
<body>
</html>

Servlet
(Java code)

Operating System

TCP/IP

Operating
System

Internet

It’s the Container that gives
the Servlet the HTTP request
and response, and it’s the
Container that calls the Servlet’s
methods (e.g. doPost() or doGet())
Historically (Java Web App)
Server: response
• Webserver supports HTTP.

Server
GET...

Web server

GET...

<html>
<head>
</head>
<body>
...
<body>
</html>

Servlet

Client
Web
browser

HTTP

(Java code)
<html>
<head>
</head>
<body>
...
<body>
</html>

Operating System

TCP/IP

Operating
System

Internet

It’s the Container that gives
the Servlet the HTTP request
and response, and it’s the
Container that calls the Servlet’s
methods (e.g. doPost() or doGet())
(Java Web App) Server: response
• Webserver supports HTTP.

Server
GET...

Grizzly is now the
HTTP front end of
the application
server

Web server
+ Container

<html>
<head>
</head>
<body>
...
<body>
</html>

Servlet
HTTP

Client

(Java code)

Operating System

Web
browser

TCP/IP

Operating
System

Internet

It’s the Container that gives
the Servlet the HTTP request
and response, and it’s the
Container that calls the Servlet’s
methods (e.g. doPost() or doGet())
Java Servlets
Java Servlets simplify web development by providing
infrastructure for component, communication, and
session management in a web container that is
integrated with a web server.
server
• Writing Servlets is like writing Java codes that place an
HTML page inside a Java class (this is the worst part of
Servlets!)
• (Historically!) requires a deployment descriptor (DD).
This is in the form of an XML file.
file
• Servlets do not have a main() method.
• Servlets are under the control of another Java
application called a Container
http://www.oracle.com/technetwork/java/javaee/javaee-faq-jsp-135209.html#diff
JavaBeans
• manage the data flow between the following:
Client/Database

Server

application client or applet

components running on the
Java EE server

database

Server components

• JavaBeans components are not considered Java EE
components by the Java EE specification.
• JavaBeans components have properties and have get and
set methods for accessing the properties.
properties
Enterprise JavaBeans (EJB)
Enterprise JavaBeans container handles:
• distributed communication
• threading
• scaling
• transaction management, etc.
has a new packaging! (see figure)

New EJB 3.1 Packaging
Older EJB Packaging

http://www.oracle.com/technetwork/java/deepdivejavaee6glassfishv3-jsp-138230.html
• create a simple web application using NetBeans IDE
• deploy it to a server, and
server
• view its presentation in a browser
NetBeans
• A 3rd party Java Integrated Development Environment
(IDE)
Class libraries for Servlets,
JSPs, Enterprise Java
Beans, advanced XML

• Comes with Java EE class libraries
• bundled with GlassFish Sever Open Source Edition
• Can deploy servlets, JSPs, and web services
A Quick Tour of the IDE (v.6.9)
JSP, Java Bean, User-defined Java Class & Package,
Get Method, User Interface
Sample Project
Index.jsp

Main interface, Html with form
Invokes response.jsp through
form action.

NameHandler.java
Class NameHandler
containing user data

response.jsp

Generates the server’s response
Defines a JavaBean to connect the class NameHandler to
the user’s input via a form text field (name).
Creating a new Web Application
New Project / Java Web
Creating a new Web Application
Specify Project Name
Creating a new Web Application
GlassFish Server

Web profile
Java Application Server: Glassfish
GlassFish
is an open source application server project led
by Sun Microsystems for the Java EE platform. The
proprietary version is called Oracle GlassFish
Enterprise Server. GlassFish is free software
Sun is the original creator
of Tomcat

It uses a derivative of Apache Tomcat as the servlet
container for serving Web content, with an added
component called Grizzly which uses Java NIO for
scalability and speed.
https://grizzly.dev.java.net/

http://java.dzone.com/articles/glassfish-and-tomcat-whats-the

Before the advent of the Java New I/O API (NIO), thread
NIO
management issues made it impossible for a server to
scale to thousands of users
Java Application Server: Glassfish
GlassFish is an open source (full) application server project
led by Sun Microsystems for the Java EE platform. The
proprietary version is called Oracle GlassFish Enterprise Server.
GlassFish is free software.
It uses a derivative of Apache Tomcat as the servlet container
for serving Web content, with an added component called Grizzly
which uses Java NIO for scalability and speed.

On 25 March 2010, soon after the acquisition
of Sun Microsystems, Oracle issued a
Microsystems
Roadmap for versions 3.0.1, 3.1, 3.2 and 4.0
with themes revolving around clustering,
clustering
virtualization and integration with
Coherence and other Oracle technologies.
http://en.wikipedia.org/wiki/GlassFish
Glassfish vs. Tomcat
Not a fullapplication
server

Sun is the original creator
of Tomcat

Historically, if you wanted to get good HTTP performance
from Tomcat you really needed to have an Apache web
server to sit in front of Tomcat which involved more setting
up and extra administrative work.
Since GlassFish v1 (May 2006), Grizzly is the HTTP
frontend of the application server.
It's a 100% Java NIO framework that provides the same
performance as Apache, only it's written in Java and
integrated straight into the application server.
http://java.dzone.com/articles/glassfish-and-tomcat-whats-the
Other Java web application-capable
Servers
• Blazix from Desiderata Software (1.5
Megabytes, JSP, Servlets and EJBs) 
• TomCat from Apache (Approx 6 Megabytes) 
• WebLogic from BEA Systems (Approx 40
Megabytes, JSP, Servlets and EJBs) 
• WebSphere from IBM (Approx 100
Megabytes, JSP, Servlets and EJBs)

http://www.jsptut.com/Getfamiliar.jsp
Commercial Deployment
• Oracle GlassFish Server

Oracle provides software support only 
for Oracle GlassFish Server, not for 
GlassFish Server Open Source Edition

– delivers a flexible, lightweight and extensible Java EE
6 platform. It provides a small footprint, fully featured
Java EE application server that is completely
supported for commercial deployment and is available
as a standalone offering.

• Oracle WebLogic Server
– designed to run the broader portfolio of Oracle Fusion
Middleware and large-scale enterprise applications.
– industry's most comprehensive Java platform for
developing, deploying, and integrating enterprise
applications.
http://docs.sun.com/app/docs/doc/821-1751/gkbtb?l=en&a=view
Creating a new Web Application
JSP File
Creating a new Web Application

Sample Run
Project: HelloWeb
HelloWeb: Directories and Files
NameHandler.java
Java Package
Right-click Source Packages

http://en.wikipedia.org/wiki/GlassFish
Java Package
Add a Java Class, specify Package name

Java Package
• a mechanism for organizing Java classes into namespaces
• can be stored in compressed files called JAR files, allowing classes to
download faster as a group rather than one at a time.

http://en.wikipedia.org/wiki/GlassFish
Java Package
Add a Java Class

http://en.wikipedia.org/wiki/GlassFish
Java Package
Edit the Java Class
• Declare a String variable inside the
class declaration.
String name;
• Add a constructor to the class:
public NameHandler()
• Add the following line in the
NameHandler() constructor:
name = null;

http://en.wikipedia.org/wiki/GlassFish
Generating Getter and Setter Methods
Right-click name field in the Source editor

Selection: Name Field / Refactor / Encapsulate Fields
Generating Getter and Setter Methods

Notice that Fields' Visibility is by default set to private, and Accessors'
private
Visibility to public, indicating that the access modifier for class variable
declaration will be specified as private, whereas getter and setter
private
methods will be generated with public and private modifiers, respectively.
Generating Getter and Setter Methods

Select the Refactor button.
Results of Refactoring
Notice that the variable
declaration has changed.
• set to private
Get and set functions
with implementation have
been added as well.
• access modifier: public
Adding and Customising
a Form, input text field,
submit button
Inserting a Form
Invoke the palette: from the menu, select (Window/Palette): or press
Ctrl+Shift+8

expand HTML Forms
Inserting a Form

expand HTML Forms and drag a Form item to a point after the
<h1> tags in the Source Editor.
The Insert Form dialog box displays.
Specifying an action
Specify the following values:

Click OK.
Source Generated
An HTML form is automatically added to the index.jsp file.
Adding an Input Text Field
Drag a Text Input item to a point just before the </form> tag, then
specify the following values:
• Name: name
• Type: text
Source Generated
Input Text Field
Adding a Submit Button
Drag a Button item to a point just before the </form> tag. Specify the
following values:
• Label: OK
• Type: submit
Click OK. An HTML button is added between the <form> tags.
Adding some extra labels, tidying up your code
Type Enter your name: just before the first <input> tag, then
change the default Hello World! text between the <h1> tags
to Entry Form.
Form
Right-click within the Source Editor and choose Format
(Alt-Shift-F) to tidy the format of your code.
index.jsp: Source Generated

We would like to
pass this to our
server
response.jsp
Adding a JSP File
In the Projects window, right-click the HelloWeb project node and
choose New > JSP. The New JSP File wizard opens.
JSP
Name the file response, and click Finish.
response
Finish
Notice that a response.jsp file node displays in the Projects window
beneath index.jsp, and the new file opens in the Source Editor.
Editor
JSP Source File Generated: response.jsp
Adding a Use Bean item
In the Palette to the right of the Source Editor, expand JSP and drag a
Use Bean item to a point just below the <body> tag in the Source
Editor.
The Insert Use Bean dialog opens.
Specify the values shown in the following figure.

The class NameHandler
belongs to the package
we have set earlier
JSP Source File Generated: response.jsp

Notice that the <jsp:useBean> tag is added beneath the <body> tag.
Adding a Set Bean property item
Drag a Set Bean Property item from the Palette to a point just before
the <h1> tag and click OK.
In the <jsp:setProperty> tag that appears, delete the empty value
attribute and edit as follows. Delete the value = "" attribute if the IDE
created it! Otherwise, it overwrites the value for name that you pass in
index.jsp.
index.jsp
Adding a Set Bean property item
Drag a Set Bean Property item from the Palette to a point just before
the <h1> tag and click OK.
In the <jsp:setProperty> tag that appears, delete the empty value
attribute and edit as follows. Delete the value = "" attribute if the IDE
created it! Otherwise, it overwrites the value for name that you pass in
index.jsp.
index.jsp
Adding a Get Bean property item
Drag a Get Bean Property item from the Palette and drop it after the
comma between the <h1> tags.
Specify the following values in the Insert Get Bean Property dialog:
• Bean Name: mybean
• Property Name: name

Insert a Get Bean Property
item here!
JSP Source Code Generated
the user input coming from index.jsp becomes a name/value pair that
is passed to the request object.
object
When you set a property using the <jsp:setProperty> tag, you can
specify the value according to the name of a property contained in the
request object.
object

Therefore, by setting property to name, you can retrieve the value
name
specified by user input.
input
Sample Run

User input

Response from
the JSP file
Sample Run
Index.jsp

Main interface, Html with form
Invokes response.jsp through
form action.

User input
NameHandler.java

response.jsp

Response from
the JSP file

Class NameHandler
containing user data, get and
set methods

Generates the server’s response
Defines a JavaBean to connect the class NameHandler to
the user’s input via a form text field (name).
Project
Index.jsp

Main interface, Html with form
Invokes response.jsp through
form action.

NameHandler.java
Class NameHandler
containing user data,
get and set methods

http://java.sun.com/blueprints/code/projectconventions.html

response.jsp

Generates the server’s response
Defines a JavaBean to connect the class NameHandler to
the user’s input via a form text field (name).
Packaging Web Applications
The Java EE specification defines how the web
application can be archived into a web application
archive (WAR)
WAR
• WAR files are
– Java archives with a .war extension
– Packaged using the same specification as zip files
– Understood by all Java EE compliant application
servers
• WAR files can be directly deployed in servlet
containers such as Tomcat
NetBeans WAR files
• To make a WAR for your NetBeans project, right click on
the project node and select Build Project.
Project
• The WAR file will be placed in the “dist” sub-directory
of your project folder
Project
Java EE 6
http://download.oracle.com/javaee/6/tutorial/doc/
Recommended Directory Structure for Projects
http://java.sun.com/blueprints/code/projectconventions.html
NetBeans
http://netbeans.org/kb/docs/web/quickstart-webapps.html
http://www.oracle.com/technetwork/java/javaee/documentation/index.html
Simple Database Example
http://netbeans.org/kb/docs/web/mysql-webapp.html
E-Commerce Example
http://netbeans.org/kb/docs/javaee/ecommerce/design.html
http://netbeans.org/kb/docs/javaee/ecommerce/data-model.html#createERDiagram
http://dot.netbeans.org:8080/AffableBean/
Lecture 19   dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1
Lecture 19   dynamic web - java - part 1
Model-View-Controller Paradigm
Lecture 19   dynamic web - java - part 1

More Related Content

ODP
Java Web Programming [1/9] : Introduction to Web Application
PPT
JEE Course - JEE Overview
PDF
Lecture 1: Introduction to JEE
PPT
Webapplication ppt prepared by krishna ballabh gupta
PPTX
IBM Websphere introduction and installation for beginners
PDF
Ibm web sphere_job_interview_preparation_guide
DOCX
IBM Websphere concepts
PPTX
WebSphere Application Server Information Resources
Java Web Programming [1/9] : Introduction to Web Application
JEE Course - JEE Overview
Lecture 1: Introduction to JEE
Webapplication ppt prepared by krishna ballabh gupta
IBM Websphere introduction and installation for beginners
Ibm web sphere_job_interview_preparation_guide
IBM Websphere concepts
WebSphere Application Server Information Resources

What's hot (20)

DOC
Websphere interview Questions
PPTX
Java ee introduction
DOCX
Ibm web sphere application server interview questions
PPT
ibm websphere admin training | websphere admin course | ibm websphere adminis...
PPT
J2EE and Servlet
PPT
Java EE Introduction
PPTX
IBM WebSphere Application Server (Clustering) Concept
PDF
Introducing WebLogic 12c OTN Tour 2012
PPTX
J2ee architecture
PPT
WebSphere 6.1 Admin Course 1
PPSX
Intorduction to struts
PPT
Chap3 3 12
PDF
Understanding
PDF
Java EE 7 - Overview and Status
PDF
Sun Java EE 6 Overview
PDF
Overview of Java EE 6 by Roberto Chinnici at SFJUG
PPT
Introduction to java ee
PPT
The Top 10 Things Oracle UCM Users Need To Know About WebLogic
PPS
Jdbc architecture and driver types ppt
Websphere interview Questions
Java ee introduction
Ibm web sphere application server interview questions
ibm websphere admin training | websphere admin course | ibm websphere adminis...
J2EE and Servlet
Java EE Introduction
IBM WebSphere Application Server (Clustering) Concept
Introducing WebLogic 12c OTN Tour 2012
J2ee architecture
WebSphere 6.1 Admin Course 1
Intorduction to struts
Chap3 3 12
Understanding
Java EE 7 - Overview and Status
Sun Java EE 6 Overview
Overview of Java EE 6 by Roberto Chinnici at SFJUG
Introduction to java ee
The Top 10 Things Oracle UCM Users Need To Know About WebLogic
Jdbc architecture and driver types ppt
Ad

Viewers also liked (7)

PDF
Solaris Zones (native & lxbranded) ~ A techXpress Guide
PDF
Syslog Centralization Logging with Windows ~ A techXpress Guide
PDF
Insecurity-In-Security version.2 (2011)
PDF
Insecurity-In-Security version.1 (2010)
PDF
Ethernet Bonding for Multiple NICs on Linux ~ A techXpress Guide
PDF
DevOps with Sec-ops
Solaris Zones (native & lxbranded) ~ A techXpress Guide
Syslog Centralization Logging with Windows ~ A techXpress Guide
Insecurity-In-Security version.2 (2011)
Insecurity-In-Security version.1 (2010)
Ethernet Bonding for Multiple NICs on Linux ~ A techXpress Guide
DevOps with Sec-ops
Ad

Similar to Lecture 19 dynamic web - java - part 1 (20)

PPT
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
PDF
JavaServer Faces Introduction by Example Juneau Josh
PDF
Javaserver Faces Introduction By Example 1st Edition Josh Juneau Auth
PPT
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
PPT
Ppt for Online music store
PDF
Java EE6 CodeCamp16 oct 2010
PDF
Enterprise Java, Servlet, JDBC and JSP.pdf
PPTX
Advance Java Topics (J2EE)
PDF
Javaserver Faces Introduction By Example Juneau Josh
PDF
Javaserver Faces Introduction By Example Juneau Josh
PPTX
AJppt.pptx
PPTX
J2ee seminar
PPT
Java for Recruiters
PDF
Enterprise java unit-1_chapter-1
PPS
Web Component Development with Servlet and JSP Technologies Unit 01
PPT
Introduction to java_ee
PPTX
Advance java1.1
PDF
Java in web 2 0 presentation
PDF
Java in web 2 0 presentation
PDF
Java™ in Web 2.0
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
JavaServer Faces Introduction by Example Juneau Josh
Javaserver Faces Introduction By Example 1st Edition Josh Juneau Auth
192563547-Servletsjhb,mnjhjhjm,nm,-Pres-ppt.ppt
Ppt for Online music store
Java EE6 CodeCamp16 oct 2010
Enterprise Java, Servlet, JDBC and JSP.pdf
Advance Java Topics (J2EE)
Javaserver Faces Introduction By Example Juneau Josh
Javaserver Faces Introduction By Example Juneau Josh
AJppt.pptx
J2ee seminar
Java for Recruiters
Enterprise java unit-1_chapter-1
Web Component Development with Servlet and JSP Technologies Unit 01
Introduction to java_ee
Advance java1.1
Java in web 2 0 presentation
Java in web 2 0 presentation
Java™ in Web 2.0

Recently uploaded (20)

PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Modernizing your data center with Dell and AMD
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Electronic commerce courselecture one. Pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Machine learning based COVID-19 study performance prediction
NewMind AI Monthly Chronicles - July 2025
Modernizing your data center with Dell and AMD
“AI and Expert System Decision Support & Business Intelligence Systems”
Electronic commerce courselecture one. Pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Network Security Unit 5.pdf for BCA BBA.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Diabetes mellitus diagnosis method based random forest with bat algorithm
Review of recent advances in non-invasive hemoglobin estimation
Dropbox Q2 2025 Financial Results & Investor Presentation
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Unlocking AI with Model Context Protocol (MCP)
Machine learning based COVID-19 study performance prediction

Lecture 19 dynamic web - java - part 1

  • 1. Glassfish, JAVA EE, Servlets, JSP, EJB
  • 2. Java platform • A Java platform comprises the JVM together with supporting class libraries. libraries Java 2 Standard Edition (J2SE) • (1999) provides core libraries for data structures, xml parsing, security, internationalization, db connectivity, RMI Java 2 Platform, Enterprise Edition (J2EE) • provides more class libraries for servlets, JSPs, Enterprise Java Beans, advanced XML Java Platform, Enterprise Edition (Java EE) • When Java Platform 5.0 was released (2004) the ‘2’ was dropped from these titles.
  • 3. Java platform • A Java platform comprises the JVM together with supporting class libraries. libraries Java Micro Edition (Java ME) • comprises the necessary core libraries and tools for writing Java for embedded systems and other small footprint platforms, along with some specialised libraries for specific types of device such as mobile phones. phones
  • 5. Java Web Application A Java web application generates interactive web pages containing various types of markup language (HTML, XML, and so on) and dynamic content. content It is typically comprised of web components such as: • JavaServer Pages (JSP) • Servlets • JavaBeans to modify and temporarily store data, interact with data databases and web services, and render content in services response to client requests. requests https://grizzly.dev.java.net/
  • 7. Java EE (Enterprise Edition) Java EE (Enterprise Edition) is a widely used platform containing a set of coordinated technologies that significantly reduce the cost and complexity of: • developing • deploying and • managing Java EE 6 is supported only by the GlassFish server v3.x. multitier, server-centric applications. Java EE builds upon the Java SE platform and provides a set of APIs (application programming interfaces) for developing and running portable, robust, scalable, reliable and secure server-side applications. http://netbeans.org/kb/trails/java-ee.html
  • 8. Java EE 6 Platform • The Java EE platform uses a simplified programming model. XML deployment descriptors are optional. Instead, a developer optional can simply enter the information as an annotation directly into a Java source file, and the Java EE server will configure the component at deployment and runtime • With annotations, you put the specification annotations information in your code next to the program element affected. http://download.oracle.com/javaee/6/tutorial/doc/bnaaw.html
  • 9. Java EE application model • an architecture for implementing services as multitier applications that deliver the scalability, accessibility, and manageability needed by enterprise-level applications. • With this structure you can more easily change one of the tiers without compromising your entire application. • Business and presentation logic - to be implemented by the developer • Standard system services – to be provided by the Java EE platform http://download.oracle.com/javaee/6/tutorial/doc/bnaaw.html
  • 11. Java Servlets • Servlets are Java classes that dynamically process requests and construct responses. • Server side replacement for CGI • Extensions to Java enabled web-servers • Inherently multi-threaded. multi-threaded • One thread per request. • Very efficient. • Platform independent.
  • 12. How do Servlets work? • Servlets run inside a Web Container - the component of the web server that runs and interacts with Servlets • Servlet is running on the server listening for requests • When a request comes in, a new thread is generated by the web container. container
  • 14. Java EE Containers Java EE containers • are the interface between a Java component and the low-level platform-specific functionality (i.e. transaction and state management, multithreading, resource pooling, etc.) that supports the component. • provide for the separation of business logic from resource and lifecycle management. • this allows developers to focus on writing business logic rather than writing enterprise infrastructure. infrastructure The Java EE platform uses "containers" to simplify development. containers http://download.oracle.com/javaee/6/tutorial/doc/bnabo.html http://www.oracle.com/technetwork/java/javaee/javaee-faq-jsp-135209.html#diff
  • 15. Java EE Containers When a request comes in: • a Servlet needs to be instantiated and create a new thread to handle the request. • call the Servlet’s doPost()or doGet() method and pass the doPost() HTTP request and HTTP response objects • get the request and the response to the Servlet • manage the life, death and resources of the Servlet * All of the above are the tasks of the web container. container
  • 16. Java EE Containers Java EE SERVER From Bodoff et. al. 2005
  • 17. Recall: (PHP-MySQL) Server: response • Webserver supports HTTP. Server Web server Client HTTP My codes HTML MySQL Operating System Web browser TCP/IP Operating System Internet PHP interpreter
  • 18. Historically (Java Web App) Server: response • Webserver supports HTTP. Server GET... Web server Client Web browser HTTP GET... Web Container Application <html> <head> </head> <body> ... <body> </html> (Java code) <html> <head> </head> <body> ... <body> </html> Servlet (Java code) Operating System TCP/IP Operating System Internet It’s the Container that gives the Servlet the HTTP request and response, and it’s the Container that calls the Servlet’s methods (e.g. doPost() or doGet())
  • 19. Historically (Java Web App) Server: response • Webserver supports HTTP. Server GET... Web server GET... <html> <head> </head> <body> ... <body> </html> Servlet Client Web browser HTTP (Java code) <html> <head> </head> <body> ... <body> </html> Operating System TCP/IP Operating System Internet It’s the Container that gives the Servlet the HTTP request and response, and it’s the Container that calls the Servlet’s methods (e.g. doPost() or doGet())
  • 20. (Java Web App) Server: response • Webserver supports HTTP. Server GET... Grizzly is now the HTTP front end of the application server Web server + Container <html> <head> </head> <body> ... <body> </html> Servlet HTTP Client (Java code) Operating System Web browser TCP/IP Operating System Internet It’s the Container that gives the Servlet the HTTP request and response, and it’s the Container that calls the Servlet’s methods (e.g. doPost() or doGet())
  • 21. Java Servlets Java Servlets simplify web development by providing infrastructure for component, communication, and session management in a web container that is integrated with a web server. server • Writing Servlets is like writing Java codes that place an HTML page inside a Java class (this is the worst part of Servlets!) • (Historically!) requires a deployment descriptor (DD). This is in the form of an XML file. file • Servlets do not have a main() method. • Servlets are under the control of another Java application called a Container http://www.oracle.com/technetwork/java/javaee/javaee-faq-jsp-135209.html#diff
  • 22. JavaBeans • manage the data flow between the following: Client/Database Server application client or applet components running on the Java EE server database Server components • JavaBeans components are not considered Java EE components by the Java EE specification. • JavaBeans components have properties and have get and set methods for accessing the properties. properties
  • 23. Enterprise JavaBeans (EJB) Enterprise JavaBeans container handles: • distributed communication • threading • scaling • transaction management, etc. has a new packaging! (see figure) New EJB 3.1 Packaging Older EJB Packaging http://www.oracle.com/technetwork/java/deepdivejavaee6glassfishv3-jsp-138230.html
  • 24. • create a simple web application using NetBeans IDE • deploy it to a server, and server • view its presentation in a browser
  • 25. NetBeans • A 3rd party Java Integrated Development Environment (IDE) Class libraries for Servlets, JSPs, Enterprise Java Beans, advanced XML • Comes with Java EE class libraries • bundled with GlassFish Sever Open Source Edition • Can deploy servlets, JSPs, and web services
  • 26. A Quick Tour of the IDE (v.6.9) JSP, Java Bean, User-defined Java Class & Package, Get Method, User Interface
  • 27. Sample Project Index.jsp Main interface, Html with form Invokes response.jsp through form action. NameHandler.java Class NameHandler containing user data response.jsp Generates the server’s response Defines a JavaBean to connect the class NameHandler to the user’s input via a form text field (name).
  • 28. Creating a new Web Application New Project / Java Web
  • 29. Creating a new Web Application Specify Project Name
  • 30. Creating a new Web Application GlassFish Server Web profile
  • 31. Java Application Server: Glassfish GlassFish is an open source application server project led by Sun Microsystems for the Java EE platform. The proprietary version is called Oracle GlassFish Enterprise Server. GlassFish is free software Sun is the original creator of Tomcat It uses a derivative of Apache Tomcat as the servlet container for serving Web content, with an added component called Grizzly which uses Java NIO for scalability and speed. https://grizzly.dev.java.net/ http://java.dzone.com/articles/glassfish-and-tomcat-whats-the Before the advent of the Java New I/O API (NIO), thread NIO management issues made it impossible for a server to scale to thousands of users
  • 32. Java Application Server: Glassfish GlassFish is an open source (full) application server project led by Sun Microsystems for the Java EE platform. The proprietary version is called Oracle GlassFish Enterprise Server. GlassFish is free software. It uses a derivative of Apache Tomcat as the servlet container for serving Web content, with an added component called Grizzly which uses Java NIO for scalability and speed. On 25 March 2010, soon after the acquisition of Sun Microsystems, Oracle issued a Microsystems Roadmap for versions 3.0.1, 3.1, 3.2 and 4.0 with themes revolving around clustering, clustering virtualization and integration with Coherence and other Oracle technologies. http://en.wikipedia.org/wiki/GlassFish
  • 33. Glassfish vs. Tomcat Not a fullapplication server Sun is the original creator of Tomcat Historically, if you wanted to get good HTTP performance from Tomcat you really needed to have an Apache web server to sit in front of Tomcat which involved more setting up and extra administrative work. Since GlassFish v1 (May 2006), Grizzly is the HTTP frontend of the application server. It's a 100% Java NIO framework that provides the same performance as Apache, only it's written in Java and integrated straight into the application server. http://java.dzone.com/articles/glassfish-and-tomcat-whats-the
  • 34. Other Java web application-capable Servers • Blazix from Desiderata Software (1.5 Megabytes, JSP, Servlets and EJBs)  • TomCat from Apache (Approx 6 Megabytes)  • WebLogic from BEA Systems (Approx 40 Megabytes, JSP, Servlets and EJBs)  • WebSphere from IBM (Approx 100 Megabytes, JSP, Servlets and EJBs) http://www.jsptut.com/Getfamiliar.jsp
  • 35. Commercial Deployment • Oracle GlassFish Server Oracle provides software support only  for Oracle GlassFish Server, not for  GlassFish Server Open Source Edition – delivers a flexible, lightweight and extensible Java EE 6 platform. It provides a small footprint, fully featured Java EE application server that is completely supported for commercial deployment and is available as a standalone offering. • Oracle WebLogic Server – designed to run the broader portfolio of Oracle Fusion Middleware and large-scale enterprise applications. – industry's most comprehensive Java platform for developing, deploying, and integrating enterprise applications. http://docs.sun.com/app/docs/doc/821-1751/gkbtb?l=en&a=view
  • 36. Creating a new Web Application JSP File
  • 37. Creating a new Web Application Sample Run
  • 41. Java Package Right-click Source Packages http://en.wikipedia.org/wiki/GlassFish
  • 42. Java Package Add a Java Class, specify Package name Java Package • a mechanism for organizing Java classes into namespaces • can be stored in compressed files called JAR files, allowing classes to download faster as a group rather than one at a time. http://en.wikipedia.org/wiki/GlassFish
  • 43. Java Package Add a Java Class http://en.wikipedia.org/wiki/GlassFish
  • 44. Java Package Edit the Java Class • Declare a String variable inside the class declaration. String name; • Add a constructor to the class: public NameHandler() • Add the following line in the NameHandler() constructor: name = null; http://en.wikipedia.org/wiki/GlassFish
  • 45. Generating Getter and Setter Methods Right-click name field in the Source editor Selection: Name Field / Refactor / Encapsulate Fields
  • 46. Generating Getter and Setter Methods Notice that Fields' Visibility is by default set to private, and Accessors' private Visibility to public, indicating that the access modifier for class variable declaration will be specified as private, whereas getter and setter private methods will be generated with public and private modifiers, respectively.
  • 47. Generating Getter and Setter Methods Select the Refactor button.
  • 48. Results of Refactoring Notice that the variable declaration has changed. • set to private Get and set functions with implementation have been added as well. • access modifier: public
  • 49. Adding and Customising a Form, input text field, submit button
  • 50. Inserting a Form Invoke the palette: from the menu, select (Window/Palette): or press Ctrl+Shift+8 expand HTML Forms
  • 51. Inserting a Form expand HTML Forms and drag a Form item to a point after the <h1> tags in the Source Editor. The Insert Form dialog box displays.
  • 52. Specifying an action Specify the following values: Click OK.
  • 53. Source Generated An HTML form is automatically added to the index.jsp file.
  • 54. Adding an Input Text Field Drag a Text Input item to a point just before the </form> tag, then specify the following values: • Name: name • Type: text
  • 56. Adding a Submit Button Drag a Button item to a point just before the </form> tag. Specify the following values: • Label: OK • Type: submit Click OK. An HTML button is added between the <form> tags.
  • 57. Adding some extra labels, tidying up your code Type Enter your name: just before the first <input> tag, then change the default Hello World! text between the <h1> tags to Entry Form. Form Right-click within the Source Editor and choose Format (Alt-Shift-F) to tidy the format of your code.
  • 58. index.jsp: Source Generated We would like to pass this to our server
  • 60. Adding a JSP File In the Projects window, right-click the HelloWeb project node and choose New > JSP. The New JSP File wizard opens. JSP Name the file response, and click Finish. response Finish Notice that a response.jsp file node displays in the Projects window beneath index.jsp, and the new file opens in the Source Editor. Editor
  • 61. JSP Source File Generated: response.jsp
  • 62. Adding a Use Bean item In the Palette to the right of the Source Editor, expand JSP and drag a Use Bean item to a point just below the <body> tag in the Source Editor. The Insert Use Bean dialog opens. Specify the values shown in the following figure. The class NameHandler belongs to the package we have set earlier
  • 63. JSP Source File Generated: response.jsp Notice that the <jsp:useBean> tag is added beneath the <body> tag.
  • 64. Adding a Set Bean property item Drag a Set Bean Property item from the Palette to a point just before the <h1> tag and click OK. In the <jsp:setProperty> tag that appears, delete the empty value attribute and edit as follows. Delete the value = "" attribute if the IDE created it! Otherwise, it overwrites the value for name that you pass in index.jsp. index.jsp
  • 65. Adding a Set Bean property item Drag a Set Bean Property item from the Palette to a point just before the <h1> tag and click OK. In the <jsp:setProperty> tag that appears, delete the empty value attribute and edit as follows. Delete the value = "" attribute if the IDE created it! Otherwise, it overwrites the value for name that you pass in index.jsp. index.jsp
  • 66. Adding a Get Bean property item Drag a Get Bean Property item from the Palette and drop it after the comma between the <h1> tags. Specify the following values in the Insert Get Bean Property dialog: • Bean Name: mybean • Property Name: name Insert a Get Bean Property item here!
  • 67. JSP Source Code Generated the user input coming from index.jsp becomes a name/value pair that is passed to the request object. object When you set a property using the <jsp:setProperty> tag, you can specify the value according to the name of a property contained in the request object. object Therefore, by setting property to name, you can retrieve the value name specified by user input. input
  • 68. Sample Run User input Response from the JSP file
  • 69. Sample Run Index.jsp Main interface, Html with form Invokes response.jsp through form action. User input NameHandler.java response.jsp Response from the JSP file Class NameHandler containing user data, get and set methods Generates the server’s response Defines a JavaBean to connect the class NameHandler to the user’s input via a form text field (name).
  • 70. Project Index.jsp Main interface, Html with form Invokes response.jsp through form action. NameHandler.java Class NameHandler containing user data, get and set methods http://java.sun.com/blueprints/code/projectconventions.html response.jsp Generates the server’s response Defines a JavaBean to connect the class NameHandler to the user’s input via a form text field (name).
  • 71. Packaging Web Applications The Java EE specification defines how the web application can be archived into a web application archive (WAR) WAR • WAR files are – Java archives with a .war extension – Packaged using the same specification as zip files – Understood by all Java EE compliant application servers • WAR files can be directly deployed in servlet containers such as Tomcat
  • 72. NetBeans WAR files • To make a WAR for your NetBeans project, right click on the project node and select Build Project. Project • The WAR file will be placed in the “dist” sub-directory of your project folder
  • 73. Project Java EE 6 http://download.oracle.com/javaee/6/tutorial/doc/ Recommended Directory Structure for Projects http://java.sun.com/blueprints/code/projectconventions.html NetBeans http://netbeans.org/kb/docs/web/quickstart-webapps.html http://www.oracle.com/technetwork/java/javaee/documentation/index.html Simple Database Example http://netbeans.org/kb/docs/web/mysql-webapp.html E-Commerce Example http://netbeans.org/kb/docs/javaee/ecommerce/design.html http://netbeans.org/kb/docs/javaee/ecommerce/data-model.html#createERDiagram

Editor's Notes

  • #3: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #4: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #6: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #8: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #15: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #16: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #22: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #23: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #24: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #26: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #32: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #33: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #34: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #42: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #43: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #44: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #45: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #46: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #47: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #48: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)
  • #49: New I/O, usually called NIO, is a collection of Java programming language APIs that offer features for intensiveI/O operations. It was introduced with the J2SE 1.4 release of Java by Sun Microsystems to complement an existing standard I/O. NIO was developed under the Java Community Process as JSR 51.[1] As of 2006, an extension to NIO, called NIO2, is being developed under JSR 203; JSR 203 is scheduled to be included in Java SE 7 (&quot;Dolphin&quot;)