WildFly: New Features
()
About this ebook
Related to WildFly
Related ebooks
Learning Puppet for Windows Server Rating: 0 out of 5 stars0 ratingsBuilding Web Applications with Flask Rating: 0 out of 5 stars0 ratingsMicrosoft System Center Orchestrator 2012 R2 Essentials Rating: 0 out of 5 stars0 ratingsInstant Play Framework Starter Rating: 0 out of 5 stars0 ratingsLearning Swift Rating: 5 out of 5 stars5/5Instant Hands-on Testing with PHPUnit How-to Rating: 0 out of 5 stars0 ratingsInstant Debian - Build a Web Server Rating: 0 out of 5 stars0 ratingsGit Best Practices Guide Rating: 0 out of 5 stars0 ratingsDrupal 7 Multi Sites Configuration Rating: 0 out of 5 stars0 ratingsApache Solr High Performance Rating: 0 out of 5 stars0 ratingsConfiguration Management with Chef-Solo Rating: 0 out of 5 stars0 ratingsBonita Open Solution 5.x Essentials Rating: 0 out of 5 stars0 ratingsWeb Development with Jade Rating: 0 out of 5 stars0 ratingsDrupal 8 Configuration Management Rating: 0 out of 5 stars0 ratingsOpa Application Development Rating: 0 out of 5 stars0 ratingsGradle Dependency Management Rating: 0 out of 5 stars0 ratingsGetting Started with Hazelcast Rating: 0 out of 5 stars0 ratingsGetting Started with Review Board Rating: 0 out of 5 stars0 ratingsDrupal Rules How-to Rating: 0 out of 5 stars0 ratingsLearning Swift - Second Edition Rating: 0 out of 5 stars0 ratingsMonitoring Docker Rating: 0 out of 5 stars0 ratingsBuilding a Web Application with PHP and MariaDB: A Reference Guide Rating: 0 out of 5 stars0 ratingsFlask Blueprints Rating: 0 out of 5 stars0 ratingsPersistence in PHP with Doctrine ORM Rating: 0 out of 5 stars0 ratingsInstant Java Password and Authentication Security Rating: 0 out of 5 stars0 ratingsApache ZooKeeper Essentials Rating: 5 out of 5 stars5/5Mastering Hibernate Rating: 0 out of 5 stars0 ratingsImplementing Cloud Design Patterns for AWS Rating: 0 out of 5 stars0 ratingsJakarta EE for Java Developers: Build Cloud-Native and Enterprise Applications Using a High-Performance Enterprise Java Platform Rating: 0 out of 5 stars0 ratingsMonitoring Elasticsearch Rating: 0 out of 5 stars0 ratings
Enterprise Applications For You
Creating Online Courses with ChatGPT | A Step-by-Step Guide with Prompt Templates Rating: 4 out of 5 stars4/5Bitcoin For Dummies Rating: 4 out of 5 stars4/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratings101 Ready-to-Use Excel Formulas Rating: 4 out of 5 stars4/550 Useful Excel Functions: Excel Essentials, #3 Rating: 5 out of 5 stars5/5Excel Formulas and Functions 2020: Excel Academy, #1 Rating: 4 out of 5 stars4/5Learn Windows PowerShell in a Month of Lunches Rating: 0 out of 5 stars0 ratingsEnterprise AI For Dummies Rating: 3 out of 5 stars3/5Excel Guide for Success Rating: 5 out of 5 stars5/5Microsoft Power Platform A Deep Dive: Dig into Power Apps, Power Automate, Power BI, and Power Virtual Agents (English Edition) Rating: 0 out of 5 stars0 ratingsExcel 2019 Bible Rating: 4 out of 5 stars4/5Excel : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Excel Programming: 1 Rating: 5 out of 5 stars5/5Building Web Services with Microsoft Azure Rating: 0 out of 5 stars0 ratingsExcel 2019 For Dummies Rating: 3 out of 5 stars3/5Excel Formulas That Automate Tasks You No Longer Have Time For Rating: 5 out of 5 stars5/5Experts' Guide to OneNote Rating: 5 out of 5 stars5/5The New Email Revolution: Save Time, Make Money, and Write Emails People Actually Want to Read! Rating: 5 out of 5 stars5/5Mastering QuickBooks 2020: The ultimate guide to bookkeeping and QuickBooks Online Rating: 0 out of 5 stars0 ratingsLearning Microsoft Azure Rating: 4 out of 5 stars4/5QuickBooks Online For Dummies Rating: 0 out of 5 stars0 ratingsCreate Income through Self-Publishing: An Author's Approach on Generating Wealth by Self-Publishing Rating: 5 out of 5 stars5/5Data Governance: How to Design, Deploy and Sustain an Effective Data Governance Program Rating: 4 out of 5 stars4/5QuickBooks 2021 For Dummies Rating: 0 out of 5 stars0 ratingsQuickBooks 2023 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsExcel Tips and Tricks Rating: 0 out of 5 stars0 ratings
Reviews for WildFly
0 ratings0 reviews
Book preview
WildFly - Filippe Costa Spolti
Table of Contents
WildFly: New Features
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Starting with WildFly
What is WildFly?
Downloading WildFly
Installing Java
The installation guide and basic configuration
Content of WildFly standalone and domain modes
Overview of the configuration files
The standalone mode
The domain mode
Starting WildFly
Starting the standalone mode
Starting the domain mode
Other basic configurations
Summary
2. Unified Configuration
Running our first web application
Changing the application context root
Configuring a virtual host
WildFly logging
Installing MySQL modules
Creating the directory to create the module
Datasources
Crypt datasource passwords
Other configurations
Accessing the management console for the first time
Configuring e-mail
Summary
3. WildFly CLI and Management Console
Connecting to the CLI
Creating a datasource with the CLI and management console
Creating a datasource using the CLI
Creating a datasource using the management console
Deployment with the CLI and management console
Deployment with the CLI
Deployment with the management console
The domain mode deployment
The domain mode deployment using the CLI
The domain mode deployment using the management console
Configuring e-mail via the CLI and management console
E-mail setup via the CLI
E-mail setup via the management console
Summary
4. Modular Services and Class Loading
Class loading precedence
WAR and EAR class loading
WAR class loading
EAR class loading
Defining a dependency through WAR
Global modules
Summary
5. Memory and Thread Pool Management
Learning about the JVM memory – Oracle JDK
Heap memory
Nonheap memory
Configuring WildFly
Garbage Collector and tuning
The undertow HTTP pool
Summary
A. What You Need to Know – Migrating from AS 7 to WildFly 8
Updated components
Major changes
The modules directory structure
The cargo container
Code changes
Singleton services
Using Hibernate 3
Configuring your application
Configuring WildFly
Dependencies
Deploying the same application on two servers
Index
WildFly: New Features
WildFly: New Features
Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: May 2014
Production Reference: 1190514
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-589-1
www.packtpub.com
Cover Image by Michal Jasej (<milak6@wp.pl>)
Credits
Author
Filippe Costa Spolti
Reviewers
Tomaž Cerar
Markus Eisele
Peter Johnson
Antonio Gomes Rodrigues
Commissioning Editor
Usha Iyer
Acquisition Editor
Mohammad Rizvi
Content Development Editor
Neil Alexander
Technical Editors
Novina Kewalramani
Pratish Soman
Copy Editors
Mradula Hegde
Laxmi Subramanian
Project Coordinator
Melita Lobo
Proofreaders
Simran Bhogal
Stephen Copestake
Indexers
Hemangini Bari
Tejal Soni
Production Coordinator
Komal Ramchandani
Cover Work
Komal Ramchandani
About the Author
Filippe Costa Spolti was born in Sao Joaquim, southern Brazil, considered one of the coldest cities in the country, but now lives in Minas Gerais. He works in the field of information technology and is a follower of the open source community. He contributes to open source projects, such as WildFly and Muffin. He currently works with management infrastructure in which the front-end is a park of physical and virtual servers running diverse critical business applications, and where he works mainly on the application servers, such as JBoss, Tomcat, and Apache. He is a professional, very flexible, and open to learning new technologies. He is a creator and maintainer of the hrStatus project, which is a free software for the DST Brazil. He is also currently working as an administrator of IBM PureSystems, which, by the way, was first deployed in Brazil and gave his company an international use case of the product.
I would like to dedicate this book to my father and thank everyone directly and indirectly involved throughout the production of the book, mainly the Packt Publishing team for giving me this opportunity.
About the Reviewers
Markus Eisele is a software architect, developer, and consultant. On a day-to-day basis, he works with customers as well as projects that deal with enterprise-level Java and infrastructures, including the Java platform and various web-related technologies, on a variety of platforms using products from different vendors. An expert in Java EE Servers, he is an Oracle ACE director, a Java champion, and a member of the Java EE 7 expert group, and is also a frequent speaker at industry conferences. You can follow him on Twitter (@myfear) or read his blog at http://blog.eisele.net.
Sharing knowledge is rewarding. It also requires time, dedication, and motivation. I'm thankful that my parents taught me the foundations to be passionate and lasting; that my girls donate the time it takes and that I have a little power package to motivate me.
Peter Johnson has over 34 years' Enterprise-computing experience. He has been working with Java for 17 years. For the last 12 years, he has been heavily involved in Java performance tuning. He is a frequent speaker on Java performance topics at various conferences, including the Computer Measurement Group annual conference, JBoss World, and Linux World. He is a moderator for the IDE and WildFly/JBoss forums at Java Ranch. He is also the co-author of JBoss in Action, Manning, and has been a reviewer on numerous books on topics ranging from Java to Windows PowerShell.
Antonio Gomes Rodrigues earned his masters degree at the University of Paris VII in France. Since then he has worked with various companies having Java EE technologies in the roles of developer, technical leader, and technical manager of the offshore projects, and also as a performance expert.
He currently works in the APM area and is a performance problem fixer for an editor.
I would like to thank my wife, Aurélie, for her support, and my child, Timothée.
www.PacktPub.com
Support files, eBooks, discount offers, and more
You might want to visit www.PacktPub.com for support files and downloads related to your book.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.
http://PacktLib.PacktPub.com
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can access, read and search across Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print and bookmark content
On demand and accessible via web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Preface
The new WildFly application server, previously known as JBoss, has recently come up with several innovations and improvements in all its aspects. It is very lightweight, fast, and easy to implement and configure. In this book, we will dive into this new version of an established technology in order to know a little more about WildFly and find out what we will be able to do with it.
What this book covers
Chapter 1, Starting with WildFly, introduces you to this new technology giving the user a better understanding of the features present in WildFly, and this chapter will also show the reader how to perform a complete installation and will supply a brief introduction on how to do the main tasks. In addition, it gives you a complete idea of what the function of each