Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Introducing delay in response" Watch "Introducing delay in response" New topic
Author

Introducing delay in response

Sriram Venkatesan P
Greenhorn

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


Thanks and Regards,<br />Sriram
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

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
 
 
subject: Introducing delay in response
 
Similar Threads
503 response code
Delay the rendering of a HTML File
Error deserializing Object
Any Design Pattern for pricing & what to do with Award travel?
Sun Server, MDB and timer service: timeout always called in single thread?