WildFly, formerly known as JBoss AS, or simply JBoss, is an application server authored by JBoss, now developed by Red Hat. WildFly is written in Java, and implements the Java Platform, Enterprise Edition (Java EE) specification. It runs on multiple platforms.

The wildfly application server version I will be using in this context is Wildfly 10. As I mentioned in this tutorial/project (Car Rental Java Enterprise Application with Java EE) which I started some days ago, I will be using Wildfly and Java EE as my backend tools. I will be showing you how to setup wildfly application server not only for the purpose of this project/tutorial but also for other tasks you decide to go on.

  • Head over to Oracle website and download the latest version of Java SDK currently I think is JDK8u112, install it and set up your Java home in environment variables (Thankfully, that will be automatically setup during the installation).
  • Head over to Netbeans website and download the latest version of Netbeans  IDE currently I think is Netbeans 8.1 (It is usually shipped with Glassfish server). Install it and during the installation choose the folder of the previously installed JDK8u112.
  • Head over to Wildfly home and download the latest version of the serverUnzip the downloaded file to a good location notably under C:\ (make sure you have the proper administrative privileges).

wildfly application server - geekshelm

  • Open the installed Netbeans IDE; under Services Tab, choose and right-click on the server node. Click on Add Server
  • A new window will open, choose wildfly application server from the list and click on next.
  • In the new window, Browse to the location where you unzipped or install the wildfly server, the path of the Configuration file will up updated automatically. Click on next, an instance of the server will be added to Netbeans IDE.

wildfly application server - geekshelm

  • From Netbeans, you can start, stop, restart the server with other operations. For now, just highlight and right-click and start Server. watch the Sever console output in Netbeans IDE.

 

wildfly application server - geekshelm

  • After the server starts, check if it is seeing your Java home if it is not recognizing it, head over to your {wildfly home}/bin folder, open standalone.conf.ps1 file and uncomment lines 17 and 23 only. change them to your own correct Java home installation.

wildfly application server - geekshelm

  • Open your browser, go to localhost/9990 i.e. the management interface. You will be faced with a notification to create a security user before accessing the management interface.

wildfly application server - geekshelm

  • Open the bin folder in your wildfly home, double click on add-user.bat or add-user.sh, follow the prompt to add a management user, all management users below to the managementRealm which houses all management clients of the application server. The management Interface should be very accessible now.

wildfly application server - geekshelm

 

wildfly application server - geekshelm

  • You can now proceed to create Datasource which is the topic of this POST.

LEAVE A REPLY

Please enter your comment!
Please enter your name here