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.
Related Questions in JAVA
- I need the BIRT.war that is compatible with Java 17 and Tomcat 10
- Creating global Class holder
- No method found for class java.lang.String in Kafka
- Issue edit a jtable with a pictures
- getting error when trying to launch kotlin jar file that use supabase "java.lang.NoClassDefFoundError"
- Does the && (logical AND) operator have a higher precedence than || (logical OR) operator in Java?
- Mixed color rendering in a JTable
- HTTPS configuration in Spring Boot, server returning timeout
- How to use Layout to create textfields which dont increase in size?
- Function for making the code wait in javafx
- How to create beans of the same class for multiple template parameters in Spring
- How could you print a specific String from an array with the values of an array from a double array on the same line, using iteration to print all?
- org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- Postgres && statement Error in Mybatis Mapper?
Related Questions in WEB-APPLICATIONS
- Error fetching the entry page through Django url path
- How To Convert Nextjs Typescript Golang Postgresql Web App Into Desktop App
- Error connecting to SQL Server in AspNetCore applications
- apache2 rotatelogs creates log file but its empty when deployed to azure web app
- how to do the sort function with specific value when the page load i dont know much about coding
- Getting error System.Management.Automation.PSSecurityException HResult=0x80131501 in web application
- Creating a Desktop Version of a Web Application (NextJS TypeScript Golang Echo)
- create django models using HTML form
- Any HTML standards to limit resource of the HTML content?
- .NET 7 Web Application sending an HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory
- How to get a postMessage message from Duda into the embedded iframe?
- error 'formDataList' isn't defined. in flutter app
- OPEN ID connect request to refresh access token
- C# EF get DbContext outside of WebApplication
- Predicting V8's Math.random() truncated outputs
Related Questions in SERVLET-3.0
- Best Practice to skip URL pattern's from getting applied servlet filter
- Cannot be resolved to a variable, expression tag is giving me an error
- Spring boot - How to prevent Fortify from complaining HttpServletResponse.getWriter.write(responseJson) as an information leak?
- Integrate Servlet Security using Basic Authentication
- JSP cannot get carousel image items in Bootstrap4 carousel component
- Where is set JSESSION id in HttpServletResponse cookie
- Request Dispatcher is not include is not executing file but showing Its source code
- <security-constraint> programmatically Tomcat
- Token has been expired or revoked while using Java Servlet
- Empty String ("") for URL mapping is not working in web.xml
- java.lang.NoClassDefFoundError: org/springframework/core/metrics/ApplicationStartup on startup using Spring5
- Java: I think I created payload for request is wrong. it is giving error Connection timed out in Java
- How to upload the image for the PDF to the server?
- I’m trying to use getPart() to upload blob image into mysql in jsp dynamic web app
- How can I decorate a HttpServlet?
Related Questions in SERVER-PUSH
- Is it okay to call rest API in every 5 seconds to receive update Android/iOS UX?
- Vaadin 14 - Closing IFrame after request from an other application
- How to use Vaadin FLOW server-push with Spring Boot
- CUBA Platform push messages from backend to UI
- HTTP Server-Push: Service to Service, without Browser
- What happens when triggering a GET request while a http2 push is in-flight for the same resource
- How web push protocol works?
- HTTP/2 Server Push not working for JavaScript files
- Can a HTTP/2 client choose which resources to receive via Server Push?
- is HTTP2 viable for video streaming or real-time multiplayer games?
- How to fetch values from dict
- With HTTP/2 Push, can I push assets before the initial response?
- HTTP/2 Server Push results in duplicate requests
- How to limit amount of files sent to HTTP 2 / Server Push + Nginx
- How can I check that HTTP2/Server Push works properly?
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?
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)
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.