How to wait on a servlet or non threaded app?

Posted on 2002-04-19
Last Modified: 2013-11-24
I would like to use an equivalent of the wait(long) method used by threads but it is a servlet.  I don't really want to create a thread just for this since it brings in all the servlet/thread problems.

Do anyone know of a reliable method for sleeping/waiting for a given number of millimeconds?

Question by:tims
  • 2

Accepted Solution

Venci75 earned 50 total points
ID: 6953304
LVL 16

Expert Comment

ID: 6953359
is enough :)

Author Comment

ID: 6953938
Perfect.  Thanks.
LVL 16

Expert Comment

ID: 6953967
> I would like to use an equivalent of the wait(long) method used by threads but it is a servlet

btw. your questions shows that you do not have the slightest idea what wait() / notify() are designed for. take a look at some tutorial on Java synchronization.

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSum6 challenge 6 76
Java and GPO 11 68
Java - Why doesn't this JFrame work 3 41
servlet  URL Rewriting 1 26
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now