wood burning stoves 2.0*
The moose likes Servlets and the fly likes Creating a Thread in a Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Creating a Thread in a Servlet" Watch "Creating a Thread in a Servlet" New topic
Author

Creating a Thread in a Servlet

RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Hello Ranchers ,

Will it be a good practice if i create a Thread in a servlet ?

Can the Container manage this ?Or it will let the application in trouble?

Will the application will face any problems in issues ?

Your valuable suggestions needed.


If you want something you never had do something which you had never done
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Will it be a good practice if i create a Thread in a servlet ?

Depends on the functional design and requirements.

Can the Container manage this ?Or it will let the application in trouble?

Will the application will face any problems in issues ?

Depends on the technical design.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41123
    
  45
There's no technical problem with it, but as Bauke said, whether it's good design depends on the circumstances.


Ping & DNS - my free Android networking tools app
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Bad code could cause technical problems.

Just understand the material.
RaviNada Kiran
Ranch Hand

Joined: Jan 30, 2009
Posts: 528
Thanks a lot .I mean it
 
 
subject: Creating a Thread in a Servlet
 
Similar Threads
How are Servlets and objects in it instantiated?
How to Shedule a servlet
thread safe servlet
session mix up
ActionServlet Thread Safe