Book Image

WildFly: New Features

By : Filippe C Spolti
Book Image

WildFly: New Features

By: Filippe C Spolti

Overview of this book

Table of Contents (13 chapters)
WildFly: New Features
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating a datasource with the CLI and management console


WildFly has extensive configuration options, which can be accomplished by manually editing configuration files, using the REST API, using the CLI, and using the management console. The last two options are addressed in the upcoming section. The CLI replaces the twiddle present in the earlier versions of AS 7 such as JBoss 4 and 5, which was also a utility via command line but with far fewer resources. Today, with the CLI, you can perform any administrative task. In the next topic, we will address some settings and the ways to perform them in the CLI and the management console.

Creating a datasource using the CLI

The steps to use the CLI are as follows:

  1. Connect the CLI.

  2. Create the datasource.

  3. Activate the datasource.

    An example of the full command where we can change variables to the desired value is given as follows:

    [standalone@localhost:9990 /] data-source add --name=TesteCliDS --jndi-name=java:/TesteCliDS --driver-name=mysql --connection...