Professional Documents
Culture Documents
BOOKING
Foreword
You are probably reading this foreword with one of several things in mind. First, is this the right project
for us, is the material current, and does the architecture reflect a good solution? Second, what should We expect
to learn and where should We start using a project of this length?
Many of the forewords We have seen will lead you through an amusing anecdote or story and then tell
a little about the author, but then fail to leave you any wiser about the answer to those questions. So,
to get straight to the point and to answer the second question first, this is a project that you can start from
day one and use right through to the end. If you havent used any of our projects before, you
are in for a pleasant surprise. Project style is very accessible, which makes the content easy to follow and
understand. We know, because We have read this project from cover to cover.
This edition of Online Air Ticket Booking is based on the J2SE 5.0 platform. The J2SE 5.0
release is one of the most significant updates to the Java platform in many years and has been three
years in the making. The release involved 5 experts , all working through the Java
Community Process and focused on making the platform better for all users. We have been involved
with the project since day one . As such, We had a great interest in making sure that this project is accurate and
matches the final expectation .Weve even compiled and run every module example twice, and there are a lot of
features, as you will find out.
Acknowledgments
While a project is usually attributed to the developers, a project particularly a large project such as this is
always the result of the efforts of a sizeable team of people. Wed therefore like to thank all the editorial
and production staff at CMC and HCL who worked so hard to produce this edition of our Project from
our initial draft.
Wed especially like to thank Mr OM and Mr Tanay Mishra of CMC for their extensive technical input. They
somehow found the time to go through the complete project and try out all the modules twice in spite
of the considerable demands of their day job. Mr Oms suggestions for improvements were invaluable, as
was his ability to spot our mistakes, and We are particularly grateful of Mr Tanay Mishras indications of where
Wed missed some of the inevitable changes arising from the evolution of the project during the beta phases.
Any errors that remain are, of course, our own, but there are surely fewer of them as a consequence of
teams efforts.
Wed also like to thank other staff memebers of CMC for their numerous suggestions for corrections
and improvements. In addition to the many changes that We made in response to these, We also updated and
reintroduced the features on using JDBC that were omitted from the previous versions , in response to requests
from a number of users. The greatly increased flexibility of this version over the previous versions is only in
part a consequence of restoring the facts and fetaures. The bulk of the additional functionality is attributable to
new material relating to the features introduced by J2SE 5.0 that deliver exciting new capabilities for every Java
programmer. The Online Air Ticket Booking release is truly a major step forward that encompasses important
extensions to AIR TICKET BOOKING as well as major additions to the smooth functioning of the departments.
Developers
HARI SURENDER SHARMA
VIBHU SHARMA
MEGHA KUMAR
AMIT KUMAR GUPTA
PRIYANK WALIA
With the wide spread presence of internet gone are the days of long ques and agonizing delays in booking
Air/train/bus tickets, hotel reservation and other necessary things.
Today every thing from applying for a passport to getting a visa and booking a ticket are possible on just a click
of the mouse.
As the technology is improving all sort of information is available under single portal and readily accessible to
almost everyone.
Online Air Ticket Booking is a web based Application which is developed keeping in mind the increased use
of airlines as a mode of travel and need of a online system for enquiring flight schedule, booking of air tickets,
And getting information about various travel destinations.
Developed by a team of highly competitive Engineers Online Air Ticket Booking provides facilities like
1)
2)
3)
4)
5)
Booking of Ticket
Enquire about the flight schedule
Information about various travel destinations
Cancellation of Tickets
Extanding of the Date of travel
Tools Used
SQL Server
Microsoft SQL Server 2005 is a database and data analysis platform for large-scale online transaction
processing (OLTP), data warehousing, and e-commerce applications. SQL Server 2005 contains these
technologies.
Section
SQL Server
Database Engine
Overview
Description
The Database Engine is the core service for storing, processing, and securing data. The
Database Engine provides controlled access and rapid transaction processing to meet the
requirements of the most demanding data consuming applications within your enterprise.
The Database Engine also provides rich support for sustaining high availability.
Analysis Services delivers online analytical processing (OLAP) and data mining
functionality for business intelligence applications. Analysis Services supports OLAP by
allowing you to design, create, and manage multidimensional structures that contain data
SQL Server Analysis
aggregated from other data sources, such as relational databases. For data mining
Services Overview
applications, Analysis Services allows you to design, create, and visualize data mining
models, constructed from other data sources by using a wide variety of industry-standard
data mining algorithms.
SQL Server
Integration Services is an enterprise data transformation and data integration solution that
Integration Services you can use to extract, transform, and consolidate data from disparate sources and move it
(SSIS) Overview
to single or multiple destinations.
SQL Server
Replication
Overview
Replication is a set of technologies for copying and distributing data and database objects
from one database to another and then synchronizing between databases to maintain
consistency. Using replication, you can distribute data to different locations and to remote
or mobile users over local and wide area networks, dial-up connections, wireless
connections, and the Internet.
Reporting Services is a new server-based reporting platform that you can use to create and
SQL Server
manage tabular, matrix, graphical, and free-form reports that contain data from relational
Reporting Services
and multidimensional data sources. The reports that you create can be viewed and managed
Overview
over a Web-based connection.
Notification Services is the platform for developing and deploying applications that
SQL Server
generate and send notifications. Notification Services can generate and send timely
Notification Services
personalized messages to thousands or millions of subscribers, and deliver them to a wide
Overview
variety of devices.
SQL Server Service Service Broker is a technology for building reliable, scalable, and secure database
Broker Overview
applications. Service Broker is a technology within the Database Engine that provides
native support for queuing. Service Broker also provides a message-based communication
platform that can be used to link disparate application components into a functioning
whole. Service Broker provides much of the infrastructure necessary to build a distributed
application, significantly reducing the application development time. Service Broker also
makes it easy to scale your application up or down to accommodate the amount of traffic
the application is receiving.
Full-Text Search
Overview
SQL Server contains the functionality you need to issue full-text queries against plain
character-based data in SQL Server tables. Full-text queries could include words and
phrases or multiple forms of a word or phrase.
SQL Server provides the tools you need to design, develop, deploy, and administer
relational databases, Analysis Services cubes, data transformation packages, replication
topologies, reporting servers, and notification servers.
Java
You can run Java programs on a wide variety of computers using a range of operating systems. Your Java
programs will run just as well on a PC running any supported version of Microsoft Windows as it will
on Linux or a Sun Solaris workstation. This is possible because a Java program does not execute directly
on your computer. It runs on a standardized environment called the Java 2 Platform that has been
imple-mented as software on a wide variety of computers and operating systems. The Java Platform consists of
two elements a software implementation of a hypothetical computer called the Java Virtual Machine
(JVM) and the Java Application Programming Interface (Java API), which is a set of software compo-nents
that provides the facilities you need to write a fully fledged interactive application in Java.
A Java compiler converts the Java source code that you write into a binary program consisting of byte-codes.
Bytecodes are machine instructions for the Java Virtual Machine. When you execute a Java pro-gram,
a program called the Java interpreter inspects and deciphers the bytecodes for it, checks it out to ensure that it
has not been tampered with and is safe to execute, and then executes the actions that the
bytecodes specify within the Java Virtual Machine. A Java interpreter can run standalone, or it can be
part of a web browser such as Netscape Navigator, Mozilla, or Microsoft Internet Explorer where it can
be invoked automatically to run applets in a web page.
Because your Java program consists of bytecodes rather than native machine instructions, it is completely
insulated from the particular hardware on which it is run. Any computer that has the Java environment
implemented will handle your program as well as any other, and because the Java interpreter sits between
your program and the physical machine, it can prevent unauthorized actions in the program from being
executed.
In the past, there has been a penalty for all this flexibility and protection in the speed of execution of
your Java programs. An interpreted Java program would typically run at only one-tenth of the speed
of an equivalent program using native machine instructions. With present Java machine implementa-tions,
much of the performance penalty has been eliminated, and in programs that are not computation
intensive which is usually the case with the sort of program you would want to include in a web page,
for example you really wouldnt notice this anyway. With the JVM that is supplied with the current
Java 2 Development Kit (JDK) available from the Sun web site, there are very few circumstances where
you will notice any appreciable degradation in performance compared to a program compiled to native
machine code.
The JavaTM programming language is designed to meet the challenges of application development in the
context of heterogeneous, network-wide distributed environments. Paramount among these challenges is secure
delivery of applications that consume the minimum of system resources, can run on any hardware and software
platform, and can be extended dynamically.
The Java programming language originated as part of a research project to develop advanced software for a
wide variety of network devices and embedded systems. The goal was to develop a small, reliable, portable,
distributed, real-time operating platform. When the project started, C++ was the language of choice. But over
time the difficulties encountered with C++ grew to the point where the problems could best be addressed by
creating an entirely new language platform. Design and architecture decisions drew from a variety of languages
such as Eiffel, SmallTalk, Objective C, and Cedar/Mesa. The result is a language platform that has proven ideal
for developing secure, distributed, network-based end-user applications in environments ranging from networkembedded devices to the World-Wide Web and the desktop
Even though C++ was rejected as an implementation language, keeping the Java programming language
looking like C++ as far as possible results in it being a familiar language, while removing the unnecessary
complexities of C++. Having the Java programming language retain many of the object-oriented features and
the "look and feel" of C++ means that programmers can migrate easily to the Java platform and be productive
quickly.
Implementing the Java virtual machine on new architectures is a relatively straightforward task as long as the
target platform meets basic requirements such as support for multithreading.
Developing your applications using the Java programming language results in software that is portable across
multiple machine architectures, operating systems, and graphical user interfaces, secure, and high performance.
With Java technology, your job as a software developer is much easier--you focus your full attention on the end
goal of shipping innovative products on time, based on the solid foundation of the Java platform. The better way
to develop software is here, now, brought to you by the Java platform.
JSP
JavaServer Pages (JSP) is a technology based on the Java language and enables the development of dynamic
web sites. JSP was developed by Sun Microsystems to allow server side development. JSP files are HTML files
with special Tags containing Java source code that provide the dynamic content.
The following shows the Typical Web server,different clients connecting via the Internet to a Web server. In this
example,the Web server is running on Unix and is the very popular Apache Web s
First static web pages were displayed. Typically these were people?s first experience with making web pages so
consisted of My Home Page sites and company marketing information. Afterwards Perl and C were languages
used on the web server to provide dynamic content. Soon most languages including Visualbasic,Delphi,C and
Java could be used to write applications that provided dynamic content using data from text files or database
requests. These were known as CGI server side applications. ASP was developed by Microsoft to allow HTML
developers to easily provide dynamic content supported as standard by Microsoft?s free Web Server,Internet
Information Server (IIS). JSP is the equivalent from Sun Microsystems,a comparison of ASP and JSP will be
presented in the following section.
The following diagram shows a web server that supports JSP files. Notice that the web server also is connected
to a database.
JSP source code runs on the web server in the JSP Servlet Engine. The JSP Servlet engine dynamically
generates the HTML and sends the HTML output to the client?s web browser.
Multi platform
Component reuse by using Javabeans and EJB.
Advantages of Java.
You can take one JSP file and move it to another platform,web server or JSP Servlet engine.
This means you are never locked into one vendor or platform.
HTML and graphics displayed on the web browser are classed as the presentation layer. The Java code (JSP) on
the server is classed as the implementation.
By having a separation of presentation and implementation,web designers work only on the presentation and
Java developers concentrate on implementing the application.
Tables Used
Airline
airline stores the detaisl of the flights
Fields:
1) sno
2) flight_name
3) no_of_seats
4) start
5) destination
6) fare
7) dep_date
cancellation
int
varchar
int
char
char
float
char
4
50
4
20
20
8
10
varchar
int
char
char
char
int
50
4
10
20
20
4
passenger
passenger stores the details of the passenger booking ticket.
Fields:
1) name
2) email
3) no_of_tickets
4) first_ticket
5) flight_name
6) amount
7) no_ticket_cancel
8) cancel_ticket
9) sno
varchar
varchar
int
varchar
varchar
float
int
varchar
int
50
50
4
50
50
8
4
50
4
BIBLIOGRAPHY
The Following books were preferred to make the project
1.Java 2 Complete Reference