Book Image

Wildfly Cookbook

Book Image

Wildfly Cookbook

Overview of this book

Table of Contents (23 chapters)
WildFly Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


In this chapter, you will learn how to manage WildFly datasource subsystems with the CLI. This is independent of the WildFly operation mode. For this reason and to facilitate the configuration, we will be running WildFly in the standalone mode.

A datasource is the component used by applications to connect to the database. The datasource, in turn, uses a driver to communicate with the underlying database properly. Hence, for WildFly to provide database integration, it needs a driver and a datasource.

WildFly comes with a default configuration, which is the ExampleDS datasource, bound to the "H2" driver. H2 is a Java SQL database, used mainly as an in-memory DB for testing purpose with SQL support.

WildFly automatically recognizes any JDBC 4 compliant driver. For this reason, a driver can be installed as a module (that is, static deployment) or it can be deployed as any normal application.

In the first method, you will have to replicate the driver module installation in all the hosts...