From the course: Java EE: Concurrency and Multithreading
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Define the bank account related beans and DAO class
From the course: Java EE: Concurrency and Multithreading
Define the bank account related beans and DAO class
- [Woman] Let's start the ManagedExecutorService demo now. First we will do all the database interactions and the things related to the data of the objects, right? So the first thing is create a BankAccountDao class. So let's head back to the IDE and under the Dao folder, I'm going to create a class. BankAccountDao. So this is the class which is going to do the database interactions for us. Next step will be create the BankAccount and the BankAccountTransaction beans as per the tables. So if you look at the database. I have the BankAccount table with these fields, and the Transaction table with five other columns. Do not worry about this. The database script is already provided to you in your exercise files. So you will have all of this data ready with you when you start off this demo. So let's go to the IDE and create beans now. Let's create one for BankAccount to store all the BankAccount information. And what will it have? It will have an account number. Then it will have the name…
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
-
-
-