Join Ketkee Aryamane for an in-depth discussion in this video Define ReportProcessor, part of Java EE: Concurrency and Multithreading.
- [Instructor] Now let us create the ReportProcessor class.…This is going to be a callable implementation,…which is going to define the job of the task.…The job of the task is to call the Dao,…get the transaction information for every bank account,…and then save that to a file.…So let's go back to the IDE,…and under the runables, I'm going to create that task.…So let's call it ReportsProcessor.…And that's going to implement callable.…
You could have also chosen runable, no problem with that.…Let's make this this return a Boolean value.…And of course, you have to implement the call method.…Let's get rid of the default implementation.…So this is how it is going to be for every bank account.…We are going to dedicate one instance…of this ReportProcessor task, right?…So if you want to generate a report for one bank account,…you are going to have one task of ReportProcessor submitted.…That's how this is going to work.…
So on line number 16, I'm going to tie up…this ReportsProcessor with a bank account instance,…go BankAccount, right?…
- 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.