JavaMail is part of the Java enterprise edition since its birth. It's a very simple framework, and it can be used not only inside an application server but in many contexts. Remember that if you work in a Java EE compliant application server as WildFly, you should always use the tools that it provides you with, for example, the mail session. It is considered bad programming to rewrite the existing or available services or components. In the subsequent chapters, we will continue talking about the asynchronous shifting to the REST services. Each architecture described in Java EE 7 has its asynchronous side.

Mastering Java EE Development with WildFly
By :

Mastering Java EE Development with WildFly
By:
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)
Preface
Introducing Java EE and Configuring the Development Environment
Working with Dependency Injection
Implementing Business Logic
Working with Distributed Transactions
Creating REST Services
Implementing WebSockets
Working with Messaging
Implementing a Mail Client
Asynchronous REST
Asynchronous EJB
Batches and Workflows
Working with Servlets and JSP
Writing a JSF Application
Sharing the Web Sessions
WildFly in Cloud
Share your Data
Deployment
Working with OSGi
How would like to rate this book
Customer Reviews