From the course: Java EE: Concurrency and Multithreading
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Run and test the ManagedExecutorService application
From the course: Java EE: Concurrency and Multithreading
Run and test the ManagedExecutorService application
- Now let us test this application. So what we're going to do is, we are going to make sure that the server is started. Yes, the server is started already and the thing is that as and when you make changes to all the files, it will do the hot deployment so it will deploy the changes as well on to the server. So if you want to just verify that, check it out. So if I let's say, have a space here and I save my file, yeah, so that's what the server is doing. It has gone ahead and re-deployed all my changes. So the project is clean and well and it's deployed on the server. Now let's access the restful bean part for the report resource. So the url is reports here so lets go to the postman tool. So this initial base URI part will remain same. This part is going to change because we are accessing a different restful bean. So lets say, reports and see what happens. Okay, we get a message right, let's go ahead and check the server. Yes, the report is generated for all the bank accounts. Lets…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Need for Java EE concurrency4m 14s
-
(Locked)
Java EE concurrency APIs3m 52s
-
(Locked)
Set up a Java EE RESTful application8m 4s
-
(Locked)
Running and testing the Java EE RESTful application4m 47s
-
(Locked)
Important Java EE terms4m 4s
-
(Locked)
ManagedExecutorService (MES) overview3m 20s
-
(Locked)
Define the bank account related beans and DAO class3m 28s
-
(Locked)
Add methods in the DAO class10m 30s
-
(Locked)
Define ReportProcessor7m 42s
-
(Locked)
Write REST class for injecting MES objects6m 51s
-
(Locked)
Verify code and add the REST method8m 42s
-
(Locked)
Run and test the ManagedExecutorService application2m 59s
-
(Locked)
ManagedScheduledExecutorService overview2m 22s
-
(Locked)
Defining the URLProcessor for the thread's job6m 47s
-
(Locked)
Add a REST method to call the URLProcessor5m 20s
-
(Locked)
Important pointers and API overview6m 22s
-
(Locked)
ManagedThreadFactory API1m 26s
-
(Locked)
Create a single thread with ManagedThreadFactory6m 7s
-
(Locked)
ManagedThreadFactory with ThreadPoolExecutor7m 2s
-
(Locked)
ContextService API3m 7s
-
(Locked)
Create a contextual proxy9m 15s
-
-
-