This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Threads in a Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Threads in a Servlet" Watch "Threads in a Servlet" New topic
Author

Threads in a Servlet

Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
Can you run a thread inside a servlet? In java web apps such as those with
real time stock charts, how is the data refreshed to the chart?
Thanks.
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
Read my article in the March JavaRanch journal on this very topic.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Barry Brashear
Ranch Hand

Joined: Jun 05, 2001
Posts: 303
Do you have any code examples of how the whole thing fits together? My reason for asking was we are re-writting a current java swing application that gets information from a socket and refreshes the screen every 10 seconds.
Thanks.
 
 
subject: Threads in a Servlet
 
Similar Threads
Is there any way to get Servlet Init Parameter using EL?
How can I change the sdk version of Websphere 4 if I already install it
javascript, servlets and SVG
Capturing Form Data
Export in Excel