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.
Run the JTA application
From the course: Java EE: Concurrency and Multithreading
Run the JTA application
- [Narrator] Okay so now let's quickly test this out. Let's make sure that is deployed correctly, yes it is. Let's take this path, let's go to the Postman tool, and now, we're going to access this part. But please don't forget that we made a post request, so we're going to send a post request, so let's click on send. Yeah, so nothing happened which means everything went okay. Let's go to the database and check whether the entries got inserted correctly, yeah. We have the entry for the 21st transaction, and let's check the log, yes, we have an entry for that too. So everything was okay. The data we were trying to insert was okay and that's why the transaction was successfully committed to the database. Now let's see the failure case, let's go to the transaction bean, and let's say you're trying to have a new entry here. Let's change the account number, and of course let's change the operation to maybe. And whatever you want to change, basically it's up to you whatever data that you…
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
-
-
-
-
-
-
-
Java Transaction API (JTA) transactions with concurrency4m 38s
-
(Locked)
Define the data sources in GlassFish server5m 4s
-
(Locked)
Define the session bean class for database operations6m 47s
-
(Locked)
Define the transaction processor5m 3s
-
(Locked)
Define the REST class3m 20s
-
(Locked)
Run the JTA application2m 44s
-
-