This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Thread code 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 "Thread code in a Servlet" Watch "Thread code in a Servlet" New topic
Author

Thread code in a Servlet

Seetesh Hindlekar
Ranch Hand

Joined: Feb 13, 2004
Posts: 244
Hi all,
Just out of curiosity,
1. Can i write the code which involves creating a Thread class along with its run method inside a Servlet?
2. Can the Servlet create an instance of a class which implements a Runnable interface?
Rgds,
Seetesh
 
jQuery in Action, 2nd edition
 
subject: Thread code in a Servlet
 
Similar Threads
Facing Issue in implementing Listeners and Filters
can thread with servlet class
my servlet says its unavailable in IE
Marker interface
Server side process Statements line by line display in JSP