Category: Java

Defining a JavaEE Datasource in your WAR File

Defining a JavaEE DataSource in your WAR file

In a previous article, I walked through adding MySQL’s JDBC driver into WildFly. This seems to be the preferred way of using JDBC Drivers and defining DataSources for your applications. The advantage this has...

Adding the MySQL JDBC driver into Wildfly

Out of the box, Wildfly only comes with an H2 JDBC driver. Most likely, you have a different database such as Oracle, MS SQL, or MySQL. As long as you have access to Wildfly,...

Making our JavaEE application CORS-aware

So far, we’ve built a JavaEE REST application that works for the most part. The only thing left is to add “Access Control” headers. Adding these headers will allow our server to communicate with...

Tying our JavaEE EJB into our JAX-RS web service

In the previous post, we created our EJB that contains all of our application logic. In this post, we’ll tie it to our JAX-RS service then test it out. We’ll start by opening TodoService.java...

Creating our first Entity and EJB in JavaEE

Let’s start this post off by briefly explaining what entities and EJBs are. An entity is an object that represents a table and an instance of an entity represents a row within that table....

Defining a JavaEE Datasource in Wildfly

Just about every application built using JavaEE will need a datasource. The easiest and, in my opinion, the best way to do it is to create it through Wildfly’s administration UI. Before we can...