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

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.…

Contents