From the course: Jakarta EE: Building Your First Application
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Add Jakarta RESTful resource to Daily Price Change web service
From the course: Jakarta EE: Building Your First Application
Add Jakarta RESTful resource to Daily Price Change web service
- [Instructor] The next step is to implement the daily price change web service. The daily price change application is a Jakarta RESTful web service application. It has a JAX-RS resource with a method that decides the price change based on business rules. It determines the price change amount based on the day of the week and returns it to the web service client which in this case is the Jakarta Faces front end of the pricing web application, I have the daily price change web service application that I created earlier. So I'm right clicking on the project, going to new, other, and then selecting web services. Then selecting RESTful web services from patterns. This creates a simple RESTful web service. Click next. Then I'm selecting a pattern, out of the options here I'll select simple root resource pattern which is already selected. It creates a RESTful root resource class with GET and PUT methods using the JAX-RS API.…
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
-
-
-
-
-
-
(Locked)
Add Enterprise Bean to the Pricing application3m 15s
-
(Locked)
Add Jakarta Persistence entity class5m 39s
-
(Locked)
Inject the EntityManager in the Enterprise Bean3m 40s
-
(Locked)
Add business methods to the Enterprise Bean6m 58s
-
(Locked)
Add the rest of the business methods6m 37s
-
(Locked)
Configure the persistance.xml file3m 41s
-
(Locked)
Call the business methods from the CDI bean3m 53s
-
(Locked)
Add Jakarta RESTful resource to Daily Price Change web service4m
-
(Locked)
Implement business logic in Jakarta RESTful resource3m 31s
-
(Locked)
Complete business logic in Jakarta RESTful resource5m 38s
-
(Locked)
-
-