1
Chapter 29
Web Technology and DBMSs
Transparencies
© Pearson Education Limited 1995, 2005
2
Chapter 29 - Objectives
◆
Basics of Internet, Web, HTTP, HTML, URLs.
◆
Advantages and disadvantages of Web as a
database platform.
◆
Approaches for integrating databases into Web:
–
Scripting Languages
–
Common Gateway Interface (CGI)
–
HTTP Cookies
© Pearson Education Limited 1995, 2005
3
Chapter 29 - Objectives
–
Extending the Web Server
–
Java, J2EE, JDBC, SQLJ, CMP, JDO, Servlets,
and JSP
–
Microsoft Web Platform: .NET, ASP, and ADO
–
Oracle Internet Platform.
© Pearson Education Limited 1995, 2005
4
Introduction
◆
Web most popular and powerful networked
information system to date.
◆
As architecture of Web was designed to be
platform-independent, can significantly lower
deployment and training costs.
◆
Organizations using Web as strategic platform for
innovative business solutions, in effect becoming
Web-centric.
© Pearson Education Limited 1995, 2005
5
Introduction
◆
Many Web sites today are file-based where each
Web document is stored in separate file.
◆
For large sites, this can lead to significant
management problems.
◆
Also many Web sites now contain more dynamic
information, such as product and pricing data.
◆
Maintaining such data in both a database and in
separate HTML files is problematic.
◆
Accessing database directly from Web would be a
better approach.
© Pearson Education Limited 1995, 2005
6
Internet
Worldwide collection of interconnected networks.
◆
Began in late ‘60s in ARPANET, a US DOD
project, investigating how to build networks that
could withstand partial outages.
◆
Starting with a few nodes, Internet estimated to
have over 945 million users by end of 2004.
◆
2 billion users projected by 2010.
◆
About 3.5 billion documents on Internet (550
billion if intranets/extranets included).
© Pearson Education Limited 1995, 2005
7
Intranet and Extranet
◆
Intranet - Web site or group of sites belonging to an
organization, accessible only by members of that
organization.
◆
Extranet - An intranet that is partially accessible to
authorized outsiders.
◆
Whereas intranet resides behind firewall and is
accessible only to people who are members of same
organization, extranet provides various levels of
accessibility to outsiders.
© Pearson Education Limited 1995, 2005
8
eCommerce and eBusiness
◆
eCommerce - Customers can place and pay for orders
via the business’s Web site.
◆
eBusiness - Complete integration of Internet technology
into economic infrastructure of the business.
◆
Business-to-business transactions may reach $2.1
trillion in Europe and $7 trillion in US by 2006.
◆
eCommerce may account for $12.8 trillion in worldwide
corporate revenue by 2006 and could represent 18% of
sales in the global economy.
© Pearson Education Limited 1995, 2005
9
The Web
Hypermedia-based system that provides a simple
‘point and click’ means of browsing information on
the Internet using hyperlinks.
◆
Information presented on Web pages, which can
contain text, graphics, pictures, sound, and video.
◆
Can also contain hyperlinks to other Web pages,
which allow users to navigate in a non-sequential
way through information.
◆
Web documents written using HTML.
© Pearson Education Limited 1995, 2005
10
The Web
◆
Web consists of network of computers that can act
in two roles:
–
as servers, providing information;
–
as clients (browsers), requesting information.
◆
Protocol that governs exchange of information
between Web server and browser is HTTP and
locations within documents identified as a URL.
◆
Much of Web’s success is due to its simplicity and
platform-independence.
© Pearson Education Limited 1995, 2005
11
Basic Components of Web Environment
© Pearson Education Limited 1995, 2005
12
HyperText Transfer Protocol (HTTP)
Protocol used to transfer Web pages through
Internet.
◆
Based on request-response paradigm:
Connection - Client establishes connection with Web server.
Request - Client sends request to Web server.
Response - Web server sends response (HTML document)
to client.
Close - Connection closed by Web server.
© Pearson Education Limited 1995, 2005
13
HyperText Transfer Protocol (HTTP)
◆
HTTP/1.0 is stateless protocol - each connection is
closed once server provides response.
◆
This makes it difficult to support concept of a
session that is essential to basic DBMS
transactions.
© Pearson Education Limited 1995, 2005
14
HyperText Markup Language (HTML)
Document formatting language used to design most
Web pages.
◆
A simple, yet powerful, platform-independent
document language.
◆
HTML is application of Standardized Generalized
Markup Language (SGML), a system for defining
structured document types and markup languages to
represent instances of those document types.
© Pearson Education Limited 1995, 2005
15
HyperText Markup Language (HTML)
© Pearson Education Limited 1995, 2005
16
Uniform Resource Locators (URLs)
String of alphanumeric characters that represents
location or address of a resource on Internet and
how that resource should be accessed.
◆
Defines uniquely where documents (resources) can
be found.
◆
Uniform Resource Identifiers (URIs) - generic set
of all Internet resource names/addresses.
◆
Uniform Resource Names (URNs) - persistent,
location-independent name. Relies on name lookup
services.
© Pearson Education Limited 1995, 2005
17
Uniform Resource Locators (URLs)
◆
URL consists of three basic parts:
–
protocol used for the connection,
–
host name,
–
path name on host where resource stored.
◆
Can optionally specify:
–
port through which connection to host should be
made,
–
query string.
/>© Pearson Education Limited 1995, 2005
18
Static and Dynamic Web Pages
◆
HTML document stored in file is static Web page.
◆
Content of dynamic Web page is generated each
time it is accessed.
◆
Thus, dynamic Web page can:
–
respond to user input from browser;
–
be customized by and for each user.
◆
Requires hypertext to be generated by servers.
◆
Need scripts that perform conversions from
different data formats into HTML ‘on-the-fly’.
© Pearson Education Limited 1995, 2005
19
Web Services
Collection of functions packaged as single entity and
published to network for use by other programs.
◆
Web services are important paradigm in building
applications and business processes for the
integration of heterogeneous applications.
◆
Based on open standards and focus on communication
and collaboration among people and applications.
◆
Unlike other Web-based applications, Web services
have no user interface and are not targeted for
browsers. Instead, consist of reusable software
components designed to be consumed by other
applications.
© Pearson Education Limited 1995, 2005
20
Web Services – Technologies & Standards
◆
eXtensible Markup Language (XML).
◆
SOAP (Simple Object Access Protocol) protocol,
based on XML, used for communication over
Internet.
◆
WSDL (Web Services Description Language)
protocol, again based on XML, used to describe
the Web service.
◆
UDDI (Universal Discovery, Description and
Integration) protocol used to register the Web
service for prospective users.
© Pearson Education Limited 1995, 2005
21
Web Services
◆
Common example is stock quote facility, which
receives a request for current price of a specified
stock and responds with requested price.
◆
Second example is Microsoft MapPoint Web
service that allows high quality maps, driving
directions, and other location information to be
integrated into a user application, business process,
or Web site.
© Pearson Education Limited 1995, 2005
22
Requirements for Web-DBMS Integration
◆
Ability to access valuable corporate data in a
secure manner.
◆
Data- and vendor-independent connectivity to
allow freedom of choice in DBMS selection.
◆
Ability to interface to database independent of any
proprietary browser or Web server.
◆
Connectivity solution that takes advantage of all
the features of an organization’s DBMS.
© Pearson Education Limited 1995, 2005
23
Requirements for Web-DBMS Integration
◆
Open architecture to allow interoperability with a
variety of systems and technologies. For example:
–
different Web servers;
–
Microsoft's (Distributed) Common Object Model
(DCOM/COM);
–
CORBA/IIOP (Internet Inter-ORB protocol);
–
Java/Remote Method Invocation (RMI);
–
XML;
–
Web services (SOAP, WSDL, UDDI).
◆
Cost-effective solution that allows for scalability,
growth, and changes in strategic directions, and helps
reduce applications development costs.
© Pearson Education Limited 1995, 2005
24
Requirements for Web-DBMS Integration
◆
Support for transactions that span multiple HTTP
requests.
◆
Support for session- and application-based
authentication.
◆
Acceptable performance.
◆
Minimal administration overhead.
◆
Set of high-level productivity tools to allow
applications to be developed, maintained, and
deployed with relative ease and speed.
© Pearson Education Limited 1995, 2005
25
Advantages of Web-DBMS Approach
◆
DBMS advantages
◆
Simplicity
◆
Platform independence
◆
Graphical User Interface
◆
Standardization
◆
Cross-platform support
◆
Transparent network access
◆
Scalable deployment
◆
Innovation
© Pearson Education Limited 1995, 2005