Join Ketkee Aryamane for an in-depth discussion in this video Verify code and add the REST method, part of Java EE: Concurrency and Multithreading.
- [Instructor] Now to the Rest class let's add a method…and from there we are going to call the Dao class…to get all the bank accounts…and for every bank account,…we'll called the ManagedExecutorService…to submit the report generation task.…So let's go to the IDE.…That's the ReportsResource restful bean that we have created…in the constructor we of course did the connection pooling,…and that the object that we have gotten…through the resource annotation.…So let's go ahead and add a material for the rest,…which is allowed in the form of get.…
And I'll say, public, string, generate reports.…Okay, and what are we going to do inside?…The first thing is, we have to call the Dao…to get all the bank accounts.…So I'm going to say list, bank accounts,…and you have the Dao ready with you,…so you just have to call get all back accounts.…
Once we do this, let's understand a few semantics…around what we are going to do.…We are going to now use the managed executor service object…to submit task of report generation for every bank account.…
- 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 Advanced
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.