File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Introducing delay in response Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Introducing delay in response" Watch "Introducing delay in response" New topic

Introducing delay in response

Sriram Venkatesan P

Joined: Aug 16, 2006
Posts: 5
I am displaying a static HTML file from a Web Server. I want an delay to be introduced so that the HTML is renderred only after 15 seconds. How can I achieve this?

Is it possible to configure JBoss to send the response back after a 15 seconds delay for all the requests it receives?


Thanks and Regards,<br />Sriram
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Hmm, usually people want to know how to make pages appear faster...

Anyway, there is no server setting to do this. Though there are probably a number of things you could code up to accomplish this task. Perhaps code up a servlet to handle all html requests and add the delay in the servlet.

JBoss In Action
I agree. Here's the link:
subject: Introducing delay in response
jQuery in Action, 3rd edition