Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Java

Reply
 
LinkBack Thread Tools Display Modes
Old 04-13-2005, 09:51 AM   #1 (permalink)
j.gohel
Code Monkey
 
Join Date: Apr 2005
Posts: 68
j.gohel is on a distinguished road
how the store and retrieve in ServletContext happens??

Hello Sir,
I am developing a chat application thats in Swing & servlets Now I am able to authenticate user and I am using ArrayList to maintain the names of the user globally my storing it in ServletContext

How to store and retrieve ArrayList from Servletcontext

And another thing is that we are having personal chat(1-to-1) also. But how to use the thread model is not known to us as we have not faced such a situation before

So if you could suggest some example code or snippets ot certain links then it would be of great help to us

Thanks
Regards
Monarch
j.gohel is offline   Reply With Quote
Old 04-13-2005, 01:26 PM   #2 (permalink)
Belisarius
Java fanboy
 
Belisarius's Avatar
 
Join Date: Aug 2003
Posts: 1,175
Belisarius is on a distinguished road
As for ServletContext, it has get and setAttribute() methods.

In regards to thread model, now you're getting into complex ground that is *way* beyond the boundaries of a "newbie" site. You'll be happy to know that Java 1.5 gave programmers new tools to deal with multi-threaded code, but I'd just head out and buy some books. You're basically talking about load-balancing, which opens a whole new can of worms, as you need to make sure the data is transmitted between each of the threads.
__________________
GitS
Belisarius is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using PHP to retrieve images stored in MySQL metazai PHP 11 04-06-2005 02:05 AM


All times are GMT -8. The time now is 01:16 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC8 ©2007, Crawlability, Inc.





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting