From the course: Java EE: Concurrency and Multithreading

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

ManagedScheduledExecutorService overview

ManagedScheduledExecutorService overview

From the course: Java EE: Concurrency and Multithreading

Start my 1-month free trial

ManagedScheduledExecutorService overview

- [Instructor] Now, let's take a look at the Managed Scheduled Executor Service Demo that we will look at here. Let's look at its overview. So, by now we know that Managed Scheduled Executor Service is an extension to the standard platform's Scheduled Executor Service and we know its objective. It's basically going to provide you methods to submit jobs, submit tasks, which occur at regular intervals or with definite days. And this particular resource, Managed Scheduled Executor Service, that can be obtained through the container, again, using the JNDI look up or the resource annotation. Okay, so now let's understand what we're going to do as a part of the demo. The use case is health check for the application. So, when you say managed scheduled, as the name suggests, it's kind of a scheduling job that you want to run. So, we are going to make sure that this job that we're going to run is going to check the health of the application. So, let's say I have a URL off my application and I…

Contents