Category: JavaEE

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

Defining our To Do service endpoints in JavaEE

In the previous blog post, we got our JavaEE project up and running and created a very simple REST endpoint. In this post, we’ll talk a bit more about what data we expect to...

Introduction to JavaEE

This is the first in a series of blog posts meant to introduce JavaEE by building a “To Do” REST back-end service. In this post we’ll get everything started and ready for future posts....