Building a Java chat server
#1

Building a Java chat server



.pdf   Building a Java chat server.pdf (Size: 322.13 KB / Downloads: 36)

Should I take this tutorial?

In this tutorial, we will build both the server and client sides of a simple chat system. This
tutorial is for someone with little or no experience doing networking programming. We'll cover
topics such as networking and multithreading in enough detail so that you'll be able to follow
the examples, even if you have little or no experience doing this kind of programming. You
will, however, need to be familiar with basic object-oriented programming in the Java
language.


Navigation

Navigating through the tutorial is easy:
* Select Next and Previous to move forward and backward through the tutorial.
* When you're finished with a section, select the next section. You can also use the Main
and Section Menus to navigate the tutorial.
* If you'd like to tell us what you think, or if you have a question for the author about the
content of the tutorial, use the Feedback button.


Introduction

What you'll learn
In this tutorial, you'll build a simple, centralized, connection-oriented Java server. In doing
so, you'll learn a basic framework that you can use when creating such a server, using
time-honored techniques that work well in many situations. We'll also examine some of the
limitations of this framework and explore ways of getting around them.

What is a connection-oriented server?

Generally speaking, the job of any server is to provide a centralized service. However, there
are many different ways of providing services, and many different ways to structure the
communications.
Chat is roughly described as a connection-oriented service, because a user establishes a
connection and maintains that connection, sending and receiving text for the duration of the
session.
This is in contrast to the Web, where the protocol is (at least in theory) transactional -- the
browser asks for a page, and the server sends it; the connection is then closed. (In practice,
the connection is kept open and reused, but this is more a speed-optimization than a
structuring metaphor.)
We'll be creating a stripped-down, connection-oriented server. Learning the basic
framework will help you a great deal in creating other connection-oriented servers in the
future.

Why create from scratch?

In creating this prototype server, we'll be using nothing more than the basic packages built
into every Java implementation. This allows us to explore server programming at the very
lowest level possible in the Java language.
There are certainly many systems available that can take care of many of these networking
details for you. In many cases, the best real-world solution is to use an existing framework,
because it often provides useful features such as fault-tolerance, load-balancing, and
sessioning.
It is, nevertheless, crucial to understand how these things work at the lowest level. No
existing solution is perfect for all problems, and existing solutions often have minor flaws that
your code must work around. Simply choosing the right pre-packaged solution takes a
discriminating eye that has been educated as to the tradeoffs inherent in various techniques.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: project on chat server in core java with project report, project report java chat server, chat server java project report, java chat server ppt, chat server project in java powerpoint prsentation, doc project report on java chat server, project report on chat server in java,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Linux Virtual Server (LVS) for Red Hat Enterprise Linux seminar addict 1 1,784 06-09-2013, 10:05 AM
Last Post: Guest
  CMS introduces Green Building Practices for Leased Properties seminar addict 1 1,523 10-01-2013, 03:46 PM
Last Post: seminar details
  Privacy-Preserving Updates to Anonymous and Confidential Databases - JAVA project uploader 3 2,169 23-12-2012, 07:35 PM
Last Post: mr.patil1234
  Web Server Software Architectures project uploader 0 1,082 11-06-2012, 12:04 PM
Last Post: project uploader
  Java™: The Complete Reference, Seventh Edition project uploader 0 1,045 09-06-2012, 05:07 PM
Last Post: project uploader
  An Ontology-Supported Web Focused-Crawler for Java Programs project uploader 0 1,160 08-06-2012, 11:31 AM
Last Post: project uploader
  Team Building in the Workplace seminar paper 0 1,296 16-03-2012, 12:31 PM
Last Post: seminar paper
  Team Building seminar paper 0 1,148 16-03-2012, 12:29 PM
Last Post: seminar paper
  Understanding the Java ClassLoader seminar paper 0 848 15-03-2012, 02:37 PM
Last Post: seminar paper
  DUCTILITY DESIGN OF REINFORCED full report CONCRETE APARTMENT BUILDING seminar paper 0 901 14-03-2012, 04:27 PM
Last Post: seminar paper

Forum Jump: