Using threads in EJBs is not considered good practice. In a servlet, I've seen it. I wouldn't call it good practice, but there are a couple uses. All of which can now be replaced with AJAX or queues.
I think the real question is whether thread.sleep is the best way for what you are trying to accomplish. Feel free to give an example.
Joined: Aug 05, 2007
I am aware that some web application servers have schedulers that fulfill the same functionality. I know that WAS does for example. Is there any simpler solution. What I am trying to achieve here is automatically retrieve some rss feed every specified time interval. Thanks again. [ April 14, 2008: Message edited by: Raef Kandeel ]