Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-20-2005
mohamedriyaz mohamedriyaz is offline
Registered User
 
 
Join Date: Jul 2005
Location: United Arab Emirates
Posts: 1
Send a message via Yahoo to mohamedriyaz
-->
How do I implment ThreadPool in web-based applications?

In my web application,I want to implment java Thread to improve the portal system performance.

Multiple clients processing a same request(executing business methods with usage of Thread),for each request,It's creating a new Thread and does not get destroyed when user is logged out.I want to implement this by utilizing ThreadPool or something similar technique to manage the threads.

Scenario :

cl1 - CustomerInfo.jsp --> ListData() object
cl2 - CustomerInfo.jsp -->

ListData ld = new ListData();
Thread t = new Thread(ld);
t.start()



class ListData implments Runnable {


//business methods...

}


How to handle this with usage of ThreadPool.
-------------------------------------------

1. Where do I run the ThreadPool either in Server or client?
2. How do I access threads in ThreadPool for each client request?


Plz suggest best way to implement this technique in jdk1.4.
Reply With Quote
  #2 (permalink)  
Old 07-20-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,532
I recommend to post this question on a Java forum instead as it doesn't seem to have anything to do with Ice.

Benoit.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Could it be overkill to use ICE for certain applications? mbylstra Help Center 6 02-08-2007 11:58 AM
ICE based HLA bogyom Comments 5 12-08-2006 04:20 AM
Very, very strange problem with Ice-based applications! timeguest Help Center 1 01-17-2006 09:30 AM
simplifing building ICE applications bterwijn Help Center 0 06-19-2005 04:10 PM
Ice with Graphical Applications spiff Help Center 3 03-25-2005 04:34 AM


All times are GMT -4. The time now is 06:34 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.