Join Ketkee Aryamane for an in-depth discussion in this video Define the REST class, part of Java EE: Concurrency and Multithreading.
- [Narrator] The next step will be…to write a REST class for that transaction demo,…and then we will get hold of the ManagedExecutorService…object, which we will have to inject…through the @Resource annotation.…Let's go to the IDE.…Let's go under the REST folder, and create a class,…which we will call Transaction Resource, okay.…Let's come down and let's define…the part and addition for it.…
Okay, and this is a transaction that you're doing…so let's this time use the @POST method of the javax.…So we'll use the POST annotation,…and a simple method public string execute transactions.…Okay, and what are we going to do here?…We're going to first inject the…managed executor service object.…Right, for that let's go to concurrent resources…managed executor service and pick up the name,…the default resource, come back to IDE,…and under the transaction resource class online number 18,…I will inject that resources.…
I say lookup.…Okay.…And of course take a reference for it.…So private managed executor service, okay.…And the next thing will be of course,…
- 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.