Book Image

Mastering Java EE Development with WildFly

By : Luca Stancapiano
Book Image

Mastering Java EE Development with WildFly

By: Luca Stancapiano

Overview of this book

Packed with rich assets and APIs, Wildfly 10 allows you to create state-of-the-art Java applications. This book will help you take your understanding of Java EE to the next level by creating distributed Java applications using Wildfly. The book begins by showing how to get started with a native installation of WildFly and it ends with a cloud installation. After setting up the development environment, you will implement and work with different WildFly features, such as implementing JavaServer Pages. You will also learn how you can use clustering so that your apps can handle a high volume of data traffic. You will also work with enterprise JavaBeans, solve issues related to failover, and implement Java Message Service integration. Moving ahead, you will be working with Java Naming and Directory Interface, Java Transaction API, and use ActiveMQ for message relay and message querying. This book will also show you how you can use your existing backend JavaScript code in your application. By the end of the book, you’ll have gained the knowledge to implement the latest Wildfly features in your Java applications.
Table of Contents (20 chapters)
5
Working with Distributed Transactions
16
WildFly in Cloud

Persistence

Persistence is a key feature in the Java EE. Application servers compliant with the Java EE 7 specifications provide Java Persistence API (JPA) 2.1 implementations for it. JPA was born with Java EE 5 moving from the old Entity Beans 2.x with the goal to give standard specifications on how to persist objects inside relational databases.

There exists many JPA implementations such as EclipseLink, Oracle TopLink, OpenJPA, and Hibernate. WildFly since JBoss 4.x a is built under Hibernate.

Hibernate 5 is the community product that manages as default JPA provider the persistence in WildFly 10. Although WildFly is built with a modular architecture where you can choose the versions of the core products by configuration or automatic import of libraries, we will focus in this chapter on the default Hibernate version provided by WildFly 10.1.0. The default version is the 5.0.10...