We have tasks in java web-app that take a long time in completing and before the time the task completes the request times out and page cannot be displayed happens. We are think of setting a async redirection servlet that acts as a front-controller redirecting the request to the appropriate action classes and while the request is being served the servlet keeps sending a heartbeat every minute or so, until the request is completed by the corresponding action classes. Has anybody implemented something similar using asynchronous servlet 3.0? Also is this possible? I understand that this is similar to server push. Thanks for guidance.
Redirect servlet async and heart beat
1.2k Views Asked by Siva VG At
1
There are 1 best solutions below
Related Questions in JAVA
- Add image to JCheckBoxMenuItem
- How to access invisible Unordered List element with Selenium WebDriver using Java
- Inheritance in Java, apparent type vs actual type
- Java catch the ball Game
- Access objects variable & method by name
- GridBagLayout is displaying JTextField and JTextArea as short, vertical lines
- Perform a task each interval
- Compound classes stored in an array are not accessible in selenium java
- How to avoid concurrent access to a resource?
- Why does processing goes slower on implementing try catch block in java?
- Redirect inside java interceptor
- Push toolbar content below statusbar
- Animation in Java on top of JPanel
- JPA - How to query with a LIKE operator in combination with an AttributeConverter
- Java Assign a Value to an array cell
Related Questions in WEB-APPLICATIONS
- Azure Web App PATH Variable Modification
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Developing a search and tag heavy website
- How do you include a HTML file in c
- Is it recommended to use Node.js for an online room booking web application?
- programmatically uninstall other application without asking user
- Fail to locate j_spring_security_check in Spring Security
- Configuring Web Applications for iOS
- Change Javascript Variables Using <input>
- how do you use angularJs to produce a functioning webapp?
- NoClassDefFound error in web application deployed on Tomcat
- Replying to a request in ruby on rails (Server side)
- Exclude one role in web.xml
- LDAP connection only works on localhost
- Displaying statistics collected by Moskito-central
Related Questions in SERVLET-3.0
- Spring web fragments and java config
- Servlet 3.0 File Upload Handling Exceptions
- Database connection suffers of concurrent threads
- Servlet is not updated after modifing code (Netbeans/Tomcat)
- index.html not rendering servlet 3.0 Tomcat 7
- Dynamically set session cookie max age
- Servlet as JSP Java Config
- HttpServletRequestWrapper - Not able to modify the request header
- Embedded Jetty: How do I call setSessionTrackingModes without a ServletContextListener
- Spring Boot still requires resource-ref in web.xml
- Display elements in jsp lists if servlet exists
- wrong request url handler servlet
- How to prevent net::ERR_INCOMPLETE_CHUNKED_ENCODING when using HTML5 Server events and Java Servlets?
- How to specify used servlet version without web.xml descriptor?
- Get file names from specific input using Java Servlet 3.0
Related Questions in SERVER-PUSH
- Ajax reload method acting on a Django table
- How to implement receiving a server push in OkHttp?
- What's the best way to retrieve messages from the server for a chat application
- Did Facebook refreshes using ajax to get updates
- How to get UDP Server to push to Client when another Client sends to server
- Check server push support
- Examples of Push APIs
- how to implement server pushing when there is an update in mysql database?
- Can ASP.NET MVC's AsyncController be used to service large number of concurrent hanging requests (long poll)?
- Efficient server push through rails
- Redirect servlet async and heart beat
- Google Apps Calendar API Push Event Query
- Http Server Push with Netty + protobuf
- iphone push notifications using mosquitto
- A technology to push data from a server to a desktop Java application
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
yes this kind of functionality you can achive by use of asynchronous servlet 3.0.it basically works like push notification and also give you respose continously with out making request here i have one code that i share with this code may help for you to make async request.