Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Java EE Development with WildFly

You're reading from   Mastering Java EE Development with WildFly Create Enterprise-grade Java applications with WildFly

Arrow left icon
Product type Paperback
Published in Jun 2017
Publisher Packt
ISBN-13 9781787287174
Length 468 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Luca Stancapiano Luca Stancapiano
Author Profile Icon Luca Stancapiano
Luca Stancapiano
Arrow right icon
View More author details
Toc

Table of Contents (20) Chapters Close

Preface 1. Introducing Java EE and Configuring the Development Environment FREE CHAPTER 2. Working with Dependency Injection 3. Persistence 4. Implementing Business Logic 5. Working with Distributed Transactions 6. Creating REST Services 7. Implementing WebSockets 8. Working with Messaging 9. Implementing a Mail Client 10. Asynchronous REST 11. Asynchronous EJB 12. Batches and Workflows 13. Working with Servlets and JSP 14. Writing a JSF Application 15. Sharing the Web Sessions 16. WildFly in Cloud 17. Share your Data 18. Deployment 19. Working with OSGi

Modules

A module is a library with its own life cycle. By default, a module is started at the start of WildFly and stopped at the stop of WildFly. A module is loaded in a lazy mode only when it is required by an application.

WildFly loads the dependencies with the following priorities:

  • Libraries inside the application
  • Modules
  • Libraries inside other external applications

JBoss module 1.5.2.Final is the product managing the modules in WildFly. All WildFly dependencies are modules, and they are situated in the modules/system/layers/base folder. Now, let's see an example of a module representing hibernate.

From the modules folder, there is the org/hibernate/5.0/module.xml descriptor file. The following is the content to transform the hibernate library into a module:

<module-alias xmlns="urn:jboss:module:1.3" name="org.hibernate" slot="5.0" ...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image