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

Run the JTA application

From the course: Java EE: Concurrency and Multithreading

Start my 1-month free trial

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…

Contents