From the course: Java EE: Concurrency and Multithreading
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Set up a Java EE RESTful application
From the course: Java EE: Concurrency and Multithreading
Set up a Java EE RESTful application
- [Narrator] Okay now that we've seen the APIs, let's go ahead and set up the Java Enterprise Edition Application. We are going to build a RESTful application. We are going to see the usage of the enterprise concurrency APIs inside a REST class. So through a REST class we are going to use them. So let's see what to do in order to set up that RESTful application in the NetBeans IDE. The first step is to create a new project from Maven archetype. So what I'm gonna do is, I'm just going to clear everything, stop everything, and let's start from the beginning. Clear this out. Okay. So I'm gonna say new project and there you choose option of Maven. Now under this list for a particular project, I'm actually going to make one from a Maven archetype. So say next and it will search for that archetype. The archetype is Java EE 8 Essentials Archetype. Very convenient archetype which will give you a complete reference to the Java EE 8 APIs. Okay say next and give it a name. So let's call it…
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
-
Java EE concurrency APIs3m 52s
-
Set up a Java EE RESTful application8m 4s
-
Running and testing the Java EE RESTful application4m 47s
-
Important Java EE terms4m 4s
-
ManagedExecutorService (MES) overview3m 20s
-
Define the bank account related beans and DAO class3m 28s
-
Add methods in the DAO class10m 30s
-
Define ReportProcessor7m 42s
-
Write REST class for injecting MES objects6m 51s
-
Verify code and add the REST method8m 42s
-
Run and test the ManagedExecutorService application2m 59s
-
ManagedScheduledExecutorService overview2m 22s
-
Defining the URLProcessor for the thread's job6m 47s
-
Add a REST method to call the URLProcessor5m 20s
-
Important pointers and API overview6m 22s
-
ManagedThreadFactory API1m 26s
-
Create a single thread with ManagedThreadFactory6m 7s
-
ManagedThreadFactory with ThreadPoolExecutor7m 2s
-
ContextService API3m 7s
-
Create a contextual proxy9m 15s
-
-
-