From the course: Java EE 7: Web Services

Development environment setup - Java EE Tutorial

From the course: Java EE 7: Web Services

Start my 1-month free trial

Development environment setup

- [Instructor] Let's look more closely at the tools we'll use during this course. If you don't already have Java installed, you should go to Oracle's website and download JDK version 1.8 or later. So this is the Download page. Next, you'll need a Maven-aware IDE. In this course, I'm using IntelliJ. So, I've installed the Ultimate Edition, so this version does require a license. If you don't have a license already, you can still download the Ultimate edition and follow along with the examples using the free trial for a limited time. Next, we will need an application server, so in this course, I'm using WildFly, and so this is the page for the WildFly downloads, and specifically, we will need version 13. So, scroll down and look for version 13 Final, which supports Java EE 7. So, once you download and installed WildFly, you can go to the server admin page, so let me show that to you, and this is the URL. So, let me show you a few tips about navigating this interface. You can go to the Deployments tab to see all of the war files you've deployed to this server. You can also click on the Runtime tab, click on JAX.RS, and then click on the war filename here, and for our REST-based resources, you can actually see those paths here, so this is very helpful when you are troubleshooting, or trying to figure out what the path is for your REST API. You can use this runtime interface here. Next, let's navigate to IntelliJ. So, I start and stop the server inside of IntelliJ, so I don't have to go to the command line. And this can easily be done by setting up a runtime configuration for JBoss, so let's take a look at that. So here, this is my runtime configuration for the server. If you click here on Configure, it will show you the path to the server here, so that's one configuration option that you'll need to set up, and then notice here there's also the URL. So, next we need to install MySQL, so let's look at that. So this is the URL for installing MySQL. Now, for MySQL we'll use it as our database, so the latest version should be fine, and it's easily controlled via a MySQL preference pane on a Mac, so I'll show that to you. So this is actually how I start and stop MySQL, so let me show you that. So here, this is the Preference pane, and simply start or stop the MySQL server by clicking on this button. Now, let's talk about MySQL Workbench. Let's go to that download page. So, MySQL Workbench provides a visual console to easily administer MySQL environments, and gain better visibility into the application. I like having this option. It is optional, though, but it really helps you see visually what's going on inside of your database, so let's navigate to MySQL Workbench. And so here, this is MySQL Workbench. You'll see it has the Tables, and you can run SQL queries, so it's a really easy-to-use interface that sits on top of MySQL. So, next let's talk about the MySQL database connector. So, for this course I'm using Connector/J, and this is the download page. And this allows applications running on the server to access MySQL. So this can be added as a data source using the WildFly administration pane, so let's go over there and I'll show you. So, this portion of the screen here that says Configuration, you can create a new datasource by clicking on Create a Datasource. Now, there's also another method. You can just click on Configuration, click on Subsystems, Datasources & Drivers, Datasources, and then notice here, this is the datasource for our Trackzilla database. So you can click on that and just see information. You can enable or disable a datasource, and you can also see other datasources that you've installed. Lastly, let's talk about Postman. So, this is the download page for Postman. Postman is a useful tool for testing APIs, and we'll use it for consuming some of the web services that we develop during this course. So let me show you a quick demo of Postman. So this is Postman. You simply put the URL here, and this is the one that returns a list of all applications, and so click Send, and then you see the output results down here. Now, that is our development environment set up. We are ready to start working with web services with Java EE.

Contents