I am developing a simple test framework in Java that needs to simulate weblogic deployments by responding to JMS calls. One of the the test configuration options is a delay to simulate latency. I was wondering if anyone has any good ideas on how to do this. I was jsut going to create a TimerTask to handle it, is there a better way? Thanks.
Share
You can create a ScheduledExecutorService to perform what you would do after a delay.
EDIT: You can use the Concurrency Backport for JDK 1.4. It works for JDK 1.2 to JDK 6