Upload
absan44
View
215
Download
0
Embed Size (px)
Citation preview
8/3/2019 Final Corporate Chat Docu
1/43
Corporate
MailServer
Documentation
Swapnil
8/3/2019 Final Corporate Chat Docu
2/43
COMMUNICATION SERVER
IndexIndex
1. Overview of the project
2. Existing System
2.1. Existing System
2.2. Limitations
2.3. Need for computerization
3. Proposed System
3.1.1. Proposed system
3.1.2. Objectives
3.1.3. Diagrammatic Representation3.1.4. Scope
3.1.5. Permission matrix
3.1.6. Features
3.1.7. Advantages
3.1.8. Enhancements
4. Requirement Analysis
4.1. Fact Finding Techniques
4.1.1. Questionnaire
4.1.2. Interview
4.1.3. Observation
4.1.4. Record review
4.2. Feasibility Study
4.2.1. Technical Feasibility
4.2.1.1. Hardware Software requirement
4.2.2. Economic Feasibility
4.2.3. Operational Feasibility
8/3/2019 Final Corporate Chat Docu
3/43
COMMUNICATION SERVER
5. System Analysis Diagrams
5.1. Process Chart
5.2. Data Flow Diagram
5.3. Entity Relationship Diagram
5.4. Data Dictionary
6. Design Specifications
6.1. Input Screen with Interactivity
6.2. Output Screen
7. Technology Used
7.1. JAVA (JDK 1.5)7.2. JSP TECHNOLOGY
7.3. WEB SERVER TOMCAT
7.4. JDBC
7.5. POSTGRESQL
Bibliography
8/3/2019 Final Corporate Chat Docu
4/43
COMMUNICATION SERVER
COMMUNICATION SERVER
Overview
An MIS is an automated system which presents information, both
internal and external to the business that aids in making a
specific set of routine decisions.
StrategicMgmt
TacticalManagemen
t
Operational Mangement
Business Operations (Sales,Purchase,Personal,Production,Recruitment )
MIS(DSS, EIS )
Operational Info Sys
Big DocumentsCreated
Regular Reports
Exception , Ad-hocReports
Summary Reports,Projections, ModelsTop Management
DepartmentalManagement
SupervisoryLevel
Reports
Decisions
Management Information System
A management information system is an integrated user-machine
system for providing information, to support the operations,
management analysis and decision making functions in an
organization
8/3/2019 Final Corporate Chat Docu
5/43
COMMUNICATION SERVER
The system utilizes Computer hardware and software, Manual
procedures, models for analysis, planning control and decision
making
Information is vital component of the organizational functioning. It
would be impossible for any manager to take decision without
information.
Managers are involved in managerial tasks such as planning,
decision making, monitoring, controlling etc. Information is used
as input for various managerial tasks. Getting right kind ofinformation in right form at right time is very important.
One of the key factors of successful business operation is well-
thought staff communication system. Good managers know that
each minute of work time spent in vain means profit loss. That is
why building fast and convenient personnel communication
environment is so important, these days.
As organization expands scale of data generation, data collection,
data analysis, report generation increases significantly. Hence
essentially MIS has to be systematic and organized way of
providing informational support to the managerial functions and
managers of an organization. So that using computers managers
can work efficiently and effectively by quick decisions and
effective and extensive communication network.
8/3/2019 Final Corporate Chat Docu
6/43
COMMUNICATION SERVER
Common means of communication, such as verbal instructions,
phone conversations and e-mail messaging, are far from
perfection when it comes to delivering short messages to multiple
individuals. Internet-based instant messaging solutions are good
but they rely on third-party services which makes the entire
system unreliable in question. The best solution shall be an
instant messenger software working in local network.
8/3/2019 Final Corporate Chat Docu
7/43
COMMUNICATION SERVER
Existing System
Communication System is known to all of us. Because of the
development in the areas of the industries, organizations need a
communication system which could provide sharing of
organizational information efficiently. Some services such as
message books, employee worksheets, time sheets are used to
maintain the organizational information.
So, in order to share information about the entire
organization communicating devices such as telephones, cellphones, fax and computers are used. These devices are available
in almost all IT organizations certainly.
Cell phones are used to send sms. Using fax machine we can
share important documents belongs to the organization. Through
internet we can chatt as well send messages using messaging
services like email, gmail chat , orkut etc.
The existing systems for chatting such as Yahoo!, MSN provide
their own messaging clients. These clients need to be
downloaded from their website and to be installed on the PC to
use it. Once the client has been installed on the PC it
communicates with the respective server. These type of systems
are widely used by millions of users worldwide using services
such as MSN, AOL, Yahoo! and many more..
The functionalities of most chat systems are similar:
8/3/2019 Final Corporate Chat Docu
8/43
COMMUNICATION SERVER
Users type messages into a message input area, and press
enter. The message is sent to all participants and displayed at
the bottom of a chat history area (pushing previous messages
up).The name of the message author is displayed in front of the
message content. The term standard text chat systems refers
to text chat systems based on above functionalities.
Emails: emails are a good form of communication because they
are a free version of mail,
Telephoned meetings: this is a good form of communication but
over long distance (international is costly)
Forum board: It is constant so that any time any one has an
opinion or an idea they can post it up for the rest of the team to
see.
Face to face meetings: these are good for getting things done butare not always appropriate.
NEED(DISADVANTAGES)
As organization expands scale of data generation, data collection,
data analysis, report generation increases significantly. Hence
essentially MIS has to be systematic and organized way of
providing informational support to the managerial functions and
managers of an organization. So that using computers managers
8/3/2019 Final Corporate Chat Docu
9/43
COMMUNICATION SERVER
can work efficiently and effectively by quick decisions and
effective and extensive communication network.
After identifying this need we have decided to design application
which will support designation hierarchy for top to bottom and
bottom to top communication with messenger and file transfer
facility.
8/3/2019 Final Corporate Chat Docu
10/43
COMMUNICATION SERVER
Proposed system
Instant messaging typically boosts communication and allows
easy collaboration. In contrast to e-mails, the parties know
whether the peer is available. Most systems allow the user to set
an online status or away message so peers get notified whenever
the user is available, busy, or away from the computer. On the
other hand, people are not forced to reply immediately to
incoming messages. This way, communication via instant
messaging can be less intrusive than communication via phone,
which is partly a reason why instant messaging is becoming more
and more important in corporate environments. However, not all
popular systems allow the sending of messages to people not
currently logged on (offline messages), a vital feature when to be
used as a less formal e-mail replacement.
It is possible to save a conversation, so as to refer to it later,
which is not possible by telephone. Also, the fact that instant
messages typically get logged in a local message history closes
the gap to the persistent nature of e-mails, facilitating quick, safe,
and persistent exchange of information such as URLs or
document snippets, which can be unwieldy when done using
inappropriate media such as phone. Instant messaging has been
known to greatly improve (mostly) children's typing abilitya skill
that is becoming increasingly important for the benefit of today's
youth.
8/3/2019 Final Corporate Chat Docu
11/43
COMMUNICATION SERVER
The system is a customized application.
The data handling is automated.
The system is more fast and efficient.
The work complexity is minimized.
It is a web application hence offers more flexibility.
The usage is global. Application can be accessed from
anywhere at anytime.
The system can handle large data as per requirement as
capacity of PostgreSQL is definitely more than other.
Screens are more task oriented and user friendly. Screens
are designed as per the user requirement.
COMMUNICATION SERVER works as a normal COMMUNICATION
SERVER like yahoo and Gmail. In this we can send mails and can
maintain Inbox and Outbox. Todays life it is very important to
make communication fastely, easily.
Therefore for convenience we use messengers but we
develop this COMMUNICATION SERVER for a single company
basic, which maintain all the addresses of employee in the one
company so it is very much convenient to send mails instantly
inside a department or in the company.
Here we maintain Outbox, which stores all the record send
by user that is record of outgoing mails, which can be use asproof for some important documents in the future.
As well as here we maintain Inbox, which stores all the
record sent by other employees that is incoming mails. Therefore
8/3/2019 Final Corporate Chat Docu
12/43
COMMUNICATION SERVER
Mail Server is very much important for communication between
the departments in a company.
We can send mails and communicate with other
employees easily and in less time.
8/3/2019 Final Corporate Chat Docu
13/43
COMMUNICATION SERVER
SCOPEMODULES
0.0 COMMUNICATION SERVER
1.0 MASTER FILE UPDATION
1.1 DEPARTMENT DB MAINTENANCE
1.1.1 NEW DEPARTMENT
1.1.2 DELETE DEPARTMENT
1.2 DESIGNATION DB MAINTENANCE
1.2.1 NEW DESIGNATION
1.2.2 CANCEL DESIGNATION
1.3 DEPARTMENT DESIGNATION DB MAINTENANCE
1.3.1 NEW ASSOCIATION
1.3.1.1 DEPT SELECTION
1.3.1.2 DESIGNATION SELECTION
1.3.1.3 VALIDATE POSTS
1.3.1.4 VALIDATE SUPER ORDINATE DESIGNATION1.3.1.5 UPDATE DEPT DESIGNATION DB
1.3.2 CHANGE ASSOCIATION
1.3.2.1 DEPT SELECTION
1.3.2.2 DISPLAY DESIGNATION
1.3.2.3 CHECK DEPENDECIES
1.3.2.4 VALIDATE CHANGES
1.3.2.5 UPDATE DEPT DESIGNATION DB
2.0 EMP ADMINISTRATION
2.1 REGISTRATION
2.1.1 GENERATE EMP-ID
2.1.2 VALIDATE EMP DETAILS
2.1.3 VALIDATE DEPARTMENT AND DESIGNATION DETAILS
8/3/2019 Final Corporate Chat Docu
14/43
COMMUNICATION SERVER
2.1.4 VALIDATE PASSWORD PROCEDURE DETAILS
2.1.5 UPDATE EMP DB
2.2 MODIFICATION
2.2.1 EMP SELECTION
2.2.2 DISLAY EMP DETAILS
2.2.3 VALIDATE CHANGES
2.2.4 ASK CONFIRMATION
2.2.5 UPDATE EMP DB
2.3 DELETION
2.3.1 EMP SELECTION
2.3.2 DISPLAY EMP DETAILS
2.3.3 CHECK DEPEDENCIES
2.3.4 CONFIRM DELETION
2.3.5 UPDATE DB
2.4 CHANGE PASSWORD PROCEDURE
2.4.1 LOGIN
2.4.2 VALIDATE PASSWORD
2.4.3 VALIDATE NEW PASSWORD
2.4.4 UPDATE EMP DB
2.5 FORGOT PASSWORD PROCEDURE
2.5.1 VALIDATE EMAIL
2.5.2 VALIDATE QUESTION AND ANSWER
2.5.3 VALIDATE NEW PASSWORD
2.5.4 UPDATE EMP DB
3.0 CHAT PROCESS
3.1 LOGIN PROCEDURE
3.2 UPDATE ONLINE MBR LIST
3.3 CHECK DESIGNATION
3.4 DISPLAY AVAILABE CHAT TYPES
3.5 CHAT TYPE SELECTION
8/3/2019 Final Corporate Chat Docu
15/43
COMMUNICATION SERVER
3.6 DEPT CHAT
3.6.1 CHECK DEPT
3.6.2 DISPLAY DEPT ONLINE EMP LIST
3.6.3 EMP SELECTION
3.7 HIERARCHICAL CHAT
3.7.1 CHECK DESIGNATION
3.7.2 DISLPLAY SUB ORDINATE DESIGNATIONS
3.7.2.1 DISPLAY ONLINE EMPS
3.7.2.2 EMP SELECTION
3.8 DESIGNATION CHAT
3.8.1 DISPLAY SAME DESIGNATION EMP LIST
3.8.2 DISPLAY ONLINE EMP LIST
3.8.3 EMP SELECTION
4.0 REPORT GENERATION
8/3/2019 Final Corporate Chat Docu
16/43
COMMUNICATION SERVER
Benefits of COMMUNICATION
SERVERCOMMUNICATION SERVER addresses the complexities mentioned
above of the existing systems. COMMUNICATION SERVER avoid
the basic complexity of the requirement of installing the client on
the PC by adopting the web application model. COMMUNICATION
SERVER is an web application which can be deployed on a we
server, so that it accessible to all the PC on the network.
COMMUNICATION SERVER doesnt require installation of any sort
of client on the PC to use the service. Which means that the
application has to deployed on only one location from which it is
accessible everywhere through network and does not require
multiple deployments as a case with normal desktop applications.
COMMUNICATION SERVER, being an web application, is accessible
from any PC with a web browser and network access. This
eliminates the requirement of installation of clients on every PC.
Thus COMMUNICATION SERVER accessible from any PC, anytime,
anywhere .
COMMUNICATION SERVER is a website for instant messaging from
absolutely anywhere. Whether youre at home, on campus, at
work, or traveling foreign lands, hop over to COMMUNICATION
8/3/2019 Final Corporate Chat Docu
17/43
COMMUNICATION SERVER
SERVER any computer to access all of your buddies and chat with
them, no downloads or installs required, for free!
Other Advantages
1. Fast & Efficient: Announce a call or meeting with a quick
message to a partner, colleague or co-worker's computer
screen without disrupting calls or meetings. Get a quick
reply.
2. Low Maintenance: Requires no server or administration.Two-minute install on each machine and you're done!
3. Discreet: Silently announce a call... tell someone another
call is holding without disturbing them. Discretely inform
someone their visitor has arrived or a meeting is about to
begin. Eliminates interruptions and wasted walking or
shouting.
4. Encourages Teamwork: Discretely get an answer... While
still on the phone, get a crucial piece of information from a
co-worker or ask them to join a conversation - all without
disrupting the phone call.
5. No chaos in message transfer
6. Messages are stored with date, time and sender details
hence can considered as valid information.
8/3/2019 Final Corporate Chat Docu
18/43
COMMUNICATION SERVER
7. Communication becomes easy
8. Saves time, money as well as papers
9. No need to type command to transfer text
10. No operating cost, No maintenance cost.
11. System is very easy to use which will definitely improve
users efficiency.
8/3/2019 Final Corporate Chat Docu
19/43
COMMUNICATION SERVER
Features
The system will be easy to use because every drawback of the
existing system is covered and removed. Web based application
made in java and PostgreSQL is being developed to do the project
management. The graphical user interface makes the system
attractive and easy to operate. The system is developed as per
the requirement. The objective of this component are,
The system is a customized application.
The handling is automated.The system is more fast and efficient.
The work complexity is minimized.
It is web application and hence it gives more flexibility.
The usage is global. Application can be accessed from
anywhere at anytime within the organization.
The system can handle large data as per requirement as
Capacity of PostgreSql is definitely more than other.
Screens are more task oriented and user friendly.
Screens are designed as per the user requirement.
Other Features
Office Messenger comes with a variety of handy features, like
Our Intra messaging utility offers unique facility guaranteeing
no unauthorized person ever reads personal correspondence.
All messages are logged, so there is no risk of losing a
message.
8/3/2019 Final Corporate Chat Docu
20/43
COMMUNICATION SERVER
All correspondence can be looked up at any time.
8/3/2019 Final Corporate Chat Docu
21/43
COMMUNICATION SERVER
Requirement Analysis
Requirement analysis is the determination of the
requirements for a new system. Requirement analysis is a
software-engineering task that bridges the gap between system
level requirements and software design. Requirements
engineering activity result in the specification of softwares
operational characteristics (function, data and behavior) indicate
softwares interface with other system elements and establish
constraints that software must meet.
A requirement is a feature that must be included in a new
system. It may include a way of capturing or processing a data,
producing information, controlling a business activity or
supporting a management. The determination of requirements
thus entails studying the existing system and collecting thedetails about it to find out what these requirements are.
8/3/2019 Final Corporate Chat Docu
22/43
COMMUNICATION SERVER
Fact-Finding Techniques
A kind part of feasibility analysis is gathering information
about the present system. These include the questionnaires,
interview, record review and observation. The analyst must know
what information to gather, to make of it. The proper use of tools
for gathering information is the key to success analysis.
We used four fact finding techniques in our system analysis:
1.Questionnaires 2.Interviews 3.Record Reviews 4.Observation
Questionnaires
A questionnaire allows analyst to collect information from
group of individuals who may or may not be using the system
thus resulting sometime in irrelevant data and redundancy. And
certainly nobody has a time to complete the questionnaire. So,we have decided to go for the interview.
Interview
Analyst use interview to collect information from individual
who they consider should be the sources, which are current user
of the existing system. The system analyst has a face-to-face
conversation with the users of the system and fixed set of
questions is prepared.
So, considering this fact important for our project, we had
conversation with Mr. XXXXXX (xxxx) XXXXX Pvt. Ltd. We have
8/3/2019 Final Corporate Chat Docu
23/43
COMMUNICATION SERVER
discussed with him about the communication system they are
using in their organization. And also about the hierarchy they
have maintained in the system. This was a very great help for us
in developing the scope of our project.
We used this technique frequently in the system analysis after
questionnaires. The interviews were unstructured. We chose
some people from offices and talked about message book system.
This helped us understand all the stages involved in this activity.
Record Review
Many kinds of records can provide analyst with valuable
information about the organizations and operations. It includes
analyzing the previous operations in the company and forecasting
the new further schemes This was the most beneficial technique
for us while making our screens and database. We studied the
existing message books, web based mail box structures etc and
other documents related with the system.
Observation
Observation allows analyst to gain information they cant
get from any other fact-finding method. Through observation,
analyst can obtain information about the activities carried out.
Their analysts have to themselves observe the activities carried
8/3/2019 Final Corporate Chat Docu
24/43
COMMUNICATION SERVER
out by the system and whether specified step all actually
followed. This can also be called on spot observations.
While finding the facts we keenly observed the usage of
communication documents and other record keeping methods.
Observations helped us in finding out the actual way of
functioning apart from the ideal or desired. This helped us in the
interface design.
We have visited following websites about the instant
messaging, messaging facilities like email, Yahoo messenger,
gmail chatt, Jabber etc. From the information we have collected,
we developed our messaging tool that provides better facilities
than others messengers provide.
Software and Hardware
Requirements: The system developed using the JSP and JDBC, which is the
common platform of the organization and can run smoothly
without any extra overheads to the organization. Also PostgreSQL
is freeware software that can be also feasible for any
organization.
For our system this is as follows
Hardware and Software RequirementHardware and Software Requirement
For better performance
Hardware Requirement
8/3/2019 Final Corporate Chat Docu
25/43
COMMUNICATION SERVER
1. Processor P-3 or Higher
2. Ram 256 Mb
3. Hard Disk 20 GB
4. Internet Connection
Software Requirements
1. Operating System. :Certified distributions of Linux
2. Front End : Java JSP
3. Backend : Postgresql.4. Web server :Tomcat
Based on findings of the investigation, we designed input/
output screens with input fields or output text with different
possibilities of validations and their acceptability to the user
gauged and correction is done wherever necessary. As our project
works on linux networking environment , there has to be a linux
machines having on the network .
8/3/2019 Final Corporate Chat Docu
26/43
COMMUNICATION SERVER
Feasibility study
The important outcome of the requirement investigation is the
determination that the system requested is feasible. There are
several aspects of the feasibility study , some of the we have
done for our project.
Preliminary investigations examine project feasibility; the
likelihood the system will be useful to organization. Their
details are as follows
Economical Feasibility
System works on internet as well as intranet. The system is
designed and developed in such a way so as to cut off the
expenditure on paper as much as possible.
We have programmed this software under LINUX java
environment which are freewares and OS can change to
Windows. So minimum investment will be required to implement
this project. So comparing with the investment needed ,
advantages of computerization stated in the proposed system are
definitely important though it is difficult to evaluate them on
economic basis. So an organization will be definitely benefited a
lot directly and indirectly.
8/3/2019 Final Corporate Chat Docu
27/43
COMMUNICATION SERVER
Operational Feasibility
An organization must have computer trained staff. Our input
screens are familiar with their existing environment. One or Two
hours of training is sufficient to train the users of this system.
The system will be web based and the interfaces will be user
friendly. All the users of the system are computer experts and
hence the operation of the system would enhance the speed of
work and not create any hindrance.
8/3/2019 Final Corporate Chat Docu
28/43
COMMUNICATION SERVER
Technology Used
JSP (Java Server Pages):
"JSP technology is an extension of the servlet
technology created to support authoring of HTML and XML
pages. It makes it easier to combine fixed or static template
data with dynamic content."
JSP is comparable to other technologies such as PHP and
ASP, which combine programming/scripting with a markup
language like HTML. The key difference being the
programming language of choice, for example, PHP uses a
C/C++/Java hybrid, ASP uses VBScript, and JSP utilizes the
full power of the Java programming language. There have
been many comparisons of these technologies, and each has
its place in the astute developer's toolbox.
A JSP page is executed by a JSP engine, which is installed in
a web server or a JSP-enabled application server. The JSP engine
receives requests from a client to a JSP page, and generates
responses from the JSP page to the client. JSP pages are typically
compiled into Java Servlets. When a JSP page is first called, if it
does not yet exist, it is compiled into a Java Servlet class and
8/3/2019 Final Corporate Chat Docu
29/43
COMMUNICATION SERVER
stored in the server memory. This enables very fast responses for
subsequent calls to that page.
In a simple implementation, the browser directly invokes a
JSP page, which itself generates the requested content (perhaps
invoking JDBC to get information directly from a database). The
JSP page can call JDBC components to generate results, and
creates standard HTML that it sends back to the browser as a
result.
This model basically replaces the CGI-BIN concept with a JSP page
(compiled as a Java Servlet). This method has the following
advantages:
It is simple and fast to program
The page author can easily generate dynamic content based
on the request and state of the resources.
This architecture works well for many applications, but it does not
scale for a large number of simultaneous Web-based clients
accessing scarce enterprise resources, since each must establish
or share a connection to the content resource in question. For
example, if the JSP page accesses a database, it may generate
8/3/2019 Final Corporate Chat Docu
30/43
COMMUNICATION SERVER
many connections to the database, which can affect the database
performance.
In another possible configuration, the Web-based client may
make a request directly to a Java Servlet, which actually
generates the dynamic content, wraps the results into a result
bean and invokes the JSP page. The JSP page accesses the
dynamic content from the bean and sends the results (as HTML)
to the browser.
This approach creates more reusable components that can be
shared between applications, and may be implemented as part of
a larger application. It still has scalability issues in terms of
handling connections to enterprise resources, such as databases.
Portability across platforms and servers
Robust exception management and memory management
Access to the wide range of Java APIs (JDBC, JavaMail,
etc.)
Portable, reusable logic components
High performance for multiple concurrent requests
Easy deployment and maintenance
8/3/2019 Final Corporate Chat Docu
31/43
COMMUNICATION SERVER
Tomcat Web Server:
Tomcat is a commercial-quality server solution based on the
Java Platform that supports the Servlet and JSP specifications.
Managed by the Apache Jakarta Project, it is developed in an
open and cooperative fashion.
Tomcat is a free, open-source implementation of Java Servlet
and JavaServer Pages technologies developed under the Jakarta
project at the Apache Software Foundation. Tomcat is availablefor commercial use under the ASF license from the Apache web
site in both binary and source versions.
Presentation Beans:
A Java Bean is a reusable software component that can be
visually manipulated in builder tools.
8/3/2019 Final Corporate Chat Docu
32/43
COMMUNICATION SERVER
About JavaBEANS
Definition
JavaBeans are software components written in the Java
programming language.
The JavaBeans specification by Sun Microsystems defines
them as "reusable software components that can be
manipulated visually in a builder tool.
JavaBean conventions
The class should be serializable(able to persistently save and
restore its state).
It should have a no-argument constructor.
Its properties should be accessed using get, set and other
methods following a standard naming convention.
It should contain any required event-handling methods.
Use of JavaBeans
Support for introspection allowing a builder tool to analyze how a
bean works.
Support for customization allowing a user to alter the appearanceand behavior of a bean.
8/3/2019 Final Corporate Chat Docu
33/43
COMMUNICATION SERVER
Support for events allowing beans to fire events, and informing
builder tools about both the events they can fire and the
events they can handle.
Support for properties allowing beans to be manipulated
programmatically, as well as to support the customization
mentioned above.
8/3/2019 Final Corporate Chat Docu
34/43
COMMUNICATION SERVER
Why use of JavaBeans in our Application
For creation of web page components in FORM Creation process
For setting properties of selected components using set method
For getting properties back in creation of an XML file
8/3/2019 Final Corporate Chat Docu
35/43
COMMUNICATION SERVER
JDBC
JDBC (Java DataBase Connectivity) is a front-end tool for
connecting to a server & and is similar to ODBC(Open DataBase
Connectivity) in that respect. However JDBC can connect to only
Java clients & it is uses ODBC for the connectivity. JDBC is
essentially a low level Application Programming Intereface.Itb is
called a low level API since any data manipulations, storage &
retrieval has to be done by the program itself.
JDBC provides a common database-programming API
for Java programs.
Reasons for preferring JDBC
1.ODBC can not be directly used with Java because it uses C
interface.
2.ODBC makes use of pointers whereas pointer concept is totally
removed from Java.
3.ODBC requires manual installation of ODBC driver managers &
drivers on all client machines. Where as JDBC drivers are written
in Java & JDBC code is automatically installable.
4.JDBC API is natural Java Interface & built in on ODBC.
Java Database drivers:
8/3/2019 Final Corporate Chat Docu
36/43
COMMUNICATION SERVER
1.JDBC-ODBC driver
-This driver has to installed on each of the client machine.It
is not advisable to use this driver for large networks.
Interfaces in java.sql package:
1.Driver
public interface Driver
The interface that every driver class must implement.
The Java SQL framework allows for multiple database
drivers.
Each driver should supply a class that implements the Driver
interface.
Client machine
JDBC-ODBC
Bridge
ODBC driver
Vendor DB library
Server machine
Database Server
8/3/2019 Final Corporate Chat Docu
37/43
COMMUNICATION SERVER
When a driver class is loaded ,it should create an instance of
itself and register it with the DriverManager. This means that
a user can load and register a driver by calling
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver);
2.Connection
public interface Connection
A connection (session) with a specific database.
Within the context of a Connection, SQL statements are
executed and results are returned.
Note by default the Connection automatically commits
changes after executing each statement. If auto commit has
been disabled, the method commit must be called explicitly;
otherwise, database changes will not be saved.
Methods
commit()rollback()
void setAutoCommit(Boolean autoCommit)
getAutoCommit()
createStatement()
prepareCall()
prepareStatement()
DatabaseMataData getMetaData()
isClosed()
3.Statement
public interface Statement
8/3/2019 Final Corporate Chat Docu
38/43
COMMUNICATION SERVER
The object used for executing a static SQL statement and
obtaining the results produced by it.
Methods:
ResultSet executeQuery(String query)
This method is used to read a data from database.
i.e. making no change in the database. It returns
the result set.
int executeUpdate(String query)
this method is used to execute SQL statements
that do not return any result set. I.e. when the
database is to be modified, it is used. It returns an
integer that determines how many records were
affected by the SQL statement.
4.PreparedStatement
public interface PreparedStatement
It enables you to execute dynamic SQL statements.
This interface lets you to set the various parameters in
dynamic statements with specified data
values.
A SQL statement is pre-compiled & stored in a
PreparedStatement object.
5.ResultSet
public interface ResultSet
8/3/2019 Final Corporate Chat Docu
39/43
COMMUNICATION SERVER
A table of data representing a database result set, which is
usually generated by executing a statement that queries the
database.
A ResultSet object maintains a cursor pointing to its current
row of data. Initially the cursor is positioned before the first
row. The next method moves the cursor to the next row, an
because it returns false when there are no more rows in the
ResultSet object, it can be used in a while loop to iterate
through the result set.
A default ResultSet object is not updatable and has a cursor
that moves forword only. Thus, it is possible to iterate
through it only once and only from the first row to the last
row.
Seven steps for using JDBC
1. import java.sql.*;
2. Register the Driver
Class.forName(sun.jdbc.odbc.JdbcOdbcDriver)
3. Connect to the database
Connection
cn=DriverManager.getConnection(jdbc:odbc:dbname,u
name,pswd);
8/3/2019 Final Corporate Chat Docu
40/43
COMMUNICATION SERVER
4. Create a statement
Statement /PreparedStatement/CallableStatement
5. Execute the statement
executeQuery(),executeUpdate(),execute()
6. Retrieve the result
7. Close statement & connection
rs.close()/cn.close()
LimitationsThere are several limitations of existing systems
These services required installation and customization not at all
possible, and always flooded by advertisements. Message book is
time consuming and a kind of obsolete, phones and cell phones
are costlier for general messaging and typing is very
inconvenient, Voice mails are not at all popular, and sms
technology is quite costlier and has its own storage limits
The system is time consuming.
8/3/2019 Final Corporate Chat Docu
41/43
COMMUNICATION SERVER
Low quality maintenance.
Absence of message saving facility on chat systems
Non standard and absence of customization.
Less effective and less efficient reports.
The system is not a customized application.
Screens are not task oriented and hence less satisfactory.
The existing systems used are basically desktop applications.
These clients need to be installed on the PC in order to use the
service. So it means that the user will not be able to use theservice from any other PC as long as the client is not installed on
that system also.
The installation of the client is a tedious process with might be a
bit hard for the end user. Also it decreases the usability of the
system as the user is not able to access the system from
anywhere. If he wants to do so, he will need to install the client on
the PC on which he wants to use the system.
Future Enhancement1) Voice Chat can be added
2) File transfer can be possible as a attachment
3) Report generation with query facility can be given
8/3/2019 Final Corporate Chat Docu
42/43
COMMUNICATION SERVER
8/3/2019 Final Corporate Chat Docu
43/43
COMMUNICATION SERVER
BIBLIOGRAPHY
Books referred during project development:
1. Comlpete Reference Java 2.
By Nauguto Schilt.
2. Java 2 (Black Book).
By Steven Holzner.
3. Comlpete Reference SQL.
By Groff Weinburg.
4. JDBC & Java.
By George Reese5. Software Engineering
By James Senn
Other reference Material
Java docs
Company web site