The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > IP Networking
.
google unix.com



IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Integrating GlassFish Application Server with Apache web server iBot Solaris BigAdmin RSS 0 10-23-2008 11:00 AM
How to restart the tomcat server sankar reddy Shell Programming and Scripting 2 10-08-2008 06:26 AM
TomCat access in an Remote Linux Server gothama UNIX for Dummies Questions & Answers 1 03-13-2008 09:17 AM
jsp not working on linux running tomcat server mile1982 Linux 1 10-14-2004 07:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-25-2009
nsharath's Avatar
nsharath nsharath is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 79
Smile can I use tomcat server for my chatting application?

Hello,
I have a socket programming code to do chatting(both server and client).
But this is limited to a single machines with multi users.
But my target is to perform chat operation on multiple IP addresses in a given LAN in college.

Can you please tell me if I can use TOMCAT as my server to perform this.If yes, can you guide me how.If no, can you please tell me what other server can I use to suit this requirement !!!!

awaiting your reply !!!
  #2 (permalink)  
Old 01-26-2009
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
It depends on how you want users to chat. Implementing a (1) 100% Web-based chatroom (no applet), or (2) users use applet from a Web page to chat? Or (3) users have dedicated clients (e.g. swing GUI) for chat?

I hope this is not college assignment. We don't allow posting these kind of questions here. But I will not post any code anyway as they are not something you can do with just a few lines of code and you should try to explore on your own.

(3) The GUI client can support any client-server socket protocol so this is the most traditional way to do this
(2) An applet can have limited networking capability so you can mostly use your own protocol as in case (3)
(1) Without applet, immediate refresh of message on Web page may be triggered by AJAX. You can use Tomcat (or even application server such as JBoss) to host an application server with state managed on it. However, to avoid excessive AJAX polling, you can use Jetty instead of Tomcat, that supports "continuations" so that it can push update to client instead of requiring polling from client side. Actually, the Jetty distribution has an example that exactly demonstrates how to create a chatroom using this method.
  #3 (permalink)  
Old 02-09-2009
nsharath's Avatar
nsharath nsharath is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 79
Hi cbkihong,
this is not my college assignment sir.
I and my team are modifying the bash shell and we are adding many modules to it.
We also wanted to include a cross-platform chat system.
Thats why I was asking abt a host server. I do abide by the rules of the forum.I would hereby ensure u that I would not put up any assignments, etc.

Can u please give me a sample links which tell me abt the Jetty and its chat application that u were telling in the previous post......
  #4 (permalink)  
Old 02-11-2009
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
OK. It was my duty to make sure this is not homework assignment. Anyway, my apologies.

Jetty is a web container like Tomcat. However, Jetty supports a unique feature called "continuation" that makes AJAX-based web applications a lot more scalable compared with conventional client polling-based solutions. This makes it ideal for implementing chat-like functionality where changes needed to be pushed actively by server to individual clients.

Actually I just found a test deployed Jetty from Google search that contains the sample.

http://64.164.6.244:9090/test/chat/chat.html

The actual sample code can be obtained from the Jetty6 download area. Jetty's site:

jetty - Jetty WebServer
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0