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 JBoss Enterprise Application Platform 7

You're reading from   Mastering JBoss Enterprise Application Platform 7 Core details of the Enteprise server supported by clear directions and advanced tips.

Arrow left icon
Product type Paperback
Published in Aug 2016
Publisher Packt
ISBN-13 9781786463630
Length 390 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Luigi Fugaro Luigi Fugaro
Author Profile Icon Luigi Fugaro
Luigi Fugaro
Francesco Marchioni Francesco Marchioni
Author Profile Icon Francesco Marchioni
Francesco Marchioni
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Installation and Configuration FREE CHAPTER 2. The CLI Management Tool 3. Managing EAP in Domain Mode 4. Deploying Applications 5. Load Balancing 6. Clustering EAP 7 7. Logging 8. Configuring Database Connectivity 9. Configuring EAP 7 for Java EE Applications 10. Messaging Administration 11. Securing the Application Server 12. New Security Features of EAP 7 13. Using EAP 7 with Docker 14. Running EAP 7 on the Cloud Using OpenShift

Adding a JDBC 4 driver module


First of all, we need to download the JDBC 4-compliant driver from the database vendor site. In our case, as previously mentioned, our database is a MySQL 5 server, so we will download the MySQL 5 connector from the following site: https://dev.mysql.com/downloads/connector/j/.

In case you need the direct link to the bundle, visit the following link: https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.38.zip.

Now extract the archive and open the JBoss EAP 7 CLI, as follows:

unzip /opt/rh/mysql-connector-java-5.1.38.zip -d /tmp
cd $JBOSS_HOME
./bin/jboss-cli.sh
module add --name=com.mysql --slot=main --resources=/tmp/mysql- connector-java-5.1.38/mysql-connector-java-5.1.38-bin.jar --dependencies=javax.api,javax.transaction.api

This will automatically create the path folder com/mysql under the modules folder of $JBOSS_HOME, and it will also copy the resource mysql-connector-java-5.1.38-bin.jar into it.

Additionally, a module.xml file descriptor...

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