Join Ketkee Aryamane for an in-depth discussion in this video Defining the URLProcessor for the thread's job, part of Java EE: Concurrency and Multithreading.
- [Narrator] Let's go ahead with the…Managed Scheduled Executor Service demo.…So the steps are listed on the slide.…Of course, it's the use case…for the health check of the app.…So the first step is add a REST class in the project…and assign path annnotation to it.…So let's go to IDE, and in this,…I'm going to create a class under the com.app.rest…and I'm going to label this URL…"HealthResource" let's say.…And let's add the path annotation to it.…And let's give it a value.…
So let's say we're going to call this "urlCheck."…What's the next step?…Inject the Managed Scheduled Executor Service object…by the resource annotation and the REST will be.…So we have our server,…and we have the Concurrent Resources.…Let's go to Concurrent Resources…and Managed Scheduled Executor Service.…So the default object that the container anyway…provides you, the GlassFish server.…It's available to you right there.…So I'm gonna take that JNDI name,…copy it,…and come back to the IDE.…
And inside this, I'm going…to have the Resource annotation inserted first.…
- What is concurrency?
- Processes and threads in Java SE
- Java EE concurrency APIs
- Working with the ManagedExecutorService, ManagedScheduledExecutorService, ManagedThreadFactory, and ContextService APIs
- Defining data access object (DAO) classes
- Adding methods to DAO classes
- Writing REST classes
- Creating custom thread factories
- Creating contextual proxies
- JTA transactions and concurrency
Skill Level Intermediate
Java EE: Contexts and Dependency Injectionwith Alex Theedom1h 43m Intermediate
Java EE: Design Patterns and Architecturewith Alex Theedom2h 44m Intermediate
Java EE: Servlets and JavaServer Pages (JSP)with Ketkee Aryamane6h 14m Intermediate
1. Overview and Setup
2. Processes and Threads
3. Executor API
4. Java EE Concurrency APIs
5. Concurrency and Transactions
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.