Sponsored Content
Special Forums IP Networking can I use tomcat server for my chatting application? Post 302280164 by cbkihong on Monday 26th of January 2009 08:16:56 AM
Old 01-26-2009
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.
 

10 More Discussions You Might Find Interesting

1. Linux

jsp not working on linux running tomcat server

hey there we cant seem to get jsp to load pages properly on linux running tomcat 4 server. everytime we run .jsp files, the source code comes up instead of the actual file contents. any suggestions?? cheers mile1982 (1 Reply)
Discussion started by: mile1982
1 Replies

2. UNIX for Dummies Questions & Answers

TomCat access in an Remote Linux Server

Hi all, I Installed Tomcat in an remote linux server (/usr/tomcat)and start service, using ./startup.sh (and tried with ./catalina.sh too). //----------------------------------------------------------------// # ./startup.sh Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.16/ Using... (1 Reply)
Discussion started by: gothama
1 Replies

3. Shell Programming and Scripting

How to restart the tomcat server

hi, I need a command that restart the tomcat server. for example for restart the tomcat i am using following command, /etc/init.d/tomcat restart ..but sometimes is not working...might be i want to use java code access this peace of script. like using the grep and ps commands can i use?... (2 Replies)
Discussion started by: sankar reddy
2 Replies

4. Shell Programming and Scripting

Trouble getting consistent PID of tomcat server from ps

Hello all, I am working on a script to automate the process of restarting some tomcat servers. The versions of tomcat are pretty old and it often happens that they don't shut down gracefully and the PID needs to be manually killed. I am having a bear of a time getting a consistent PID from ps... (1 Reply)
Discussion started by: dkaplowitz
1 Replies

5. Programming

Need a little help in running jsp pages(Tomcat server).

Hi, I have installed following software on my linux machine. Is there anything else required to run jsp pages on linux machine? Please Help Here are some details that might be helpful. # lsb_release -a LSB Version: ... (3 Replies)
Discussion started by: pinga123
3 Replies

6. Shell Programming and Scripting

how to debug an expect script running on a tomcat server

Hello everyone, I have a small expect script as follows; #!/usr/bin/expect -f set force_conservative 0 ;# set to 1 to force conservative mode even if ;# script wasn't run conservatively originally if {$force_conservative} { set send_slow {1 .1} proc send {ignore arg}... (1 Reply)
Discussion started by: randeel
1 Replies

7. Solaris

Tomcat..Unable to deploy application remotely in tomcat

Hi, We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies

8. UNIX for Dummies Questions & Answers

Where is the best location to deploy an application on Tomcat over Linux?

Hi, I'm trying to figure out the best location to deploy an application on Tomcat over Linux server. The application structure is as follows: 1. WAR - the app itself. 2. conf - configuration files that are part of the product, not to be changed in deployment 3. local_conf - overriding... (0 Replies)
Discussion started by: moshebs
0 Replies

9. UNIX and Linux Applications

How to Monitor Tomcat App Server?

Tomcat stops logging intermittently for brief intervals of time like for 5 or 6 secs I wish to monitor if my Tomcat process gets stuck, hung or even shutdown or remains healthy at the time i see the problem of no logging. Can you please let me know how can i monitor Tomcat Application... (10 Replies)
Discussion started by: mohtashims
10 Replies

10. UNIX for Advanced & Expert Users

Building an apache-tomcat server

Hi, I have been assigned a task to build a server with these requirements : > has multiple tomcats running under the same apache. > tomcat & jdk has to be binded with apache. > latest openssl with all necesarry "mod" to bind with apache & tomcat. I am fairly new to... (1 Reply)
Discussion started by: anaigini45
1 Replies
Net::Hotline::PrivateChat(3pm)				User Contributed Perl Documentation			    Net::Hotline::PrivateChat(3pm)

NAME
Net::Hotline::PrivateChat - Private chat object used internally by Net::Hotline::Client SYNOPSIS
use Net::Hotline::PrivateChat; $pchat = new Net::Hotline::PrivateChat; $pchat->subject("Issue 1: Monkey beards"); $pchat->reference(0x313337); ... DESCRIPTION
Net::Hotline::PrivateChat is a simple class for storing and retrieving private chat information, You should never have to create your own Net::Hotline::PrivateChat objects when using Net::Hotline::Client. Getting and (to a lesser extent) setting attributes is all that should be necessary. CONSTRUCTION
new REF, USERLIST, SUBJECT Creates a new Net::Hotline::PrivateChat object with the reference REF, userlist USERLIST, and subject SUBJECT, where REF is a number, USERLIST is a reference to a hash of Net::Hotline::User objects keyed by socket number, and SUBJECT is a string. Any missing arguments will be set to undef. METHODS
All the Net::Hotline::PrivateChat methods are simple attribute get/set routines. If given an argument, they set an attribute. In all cases, they return the current value of the attribute. reference NUM The private chat reference number. subject TEXT The subject of the private chat. userlist HASHREF The list of users in the private chat. AUTHOR
John C. Siracusa (siracusa@mindspring.com) COPYRIGHT
Copyright(c) 1999 by John Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2002-11-27 Net::Hotline::PrivateChat(3pm)
All times are GMT -4. The time now is 03:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy