Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to configure MySQL data sources in JBoss

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

It is believed that many inexperienced people have no idea about how to configure MySQL data source in JBoss. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

JBOSS_HOME

+-modules

+-com

+-

+-main

+-module.xml

+-mysql-connector-java-5.1.15.jar (jdbc driver jar file for mysql, version varies according to each case)

+-mysql-connector-java-5.1.15.jar.index

Module.xml 's? Inside? Rong? Such as? Next?:

Example 1. Module.xml

Mysql-connector-java-5.1.15.jar.index 's? Inside? Rong? Such as? Next?:

Example 2. Mysql-connector-java-5.1.15.jar.index

META-INF

META-INF/services

Com

Com/mysql

Com/mysql/jdbc

Com/mysql/jdbc/configs

Com/mysql/jdbc/exceptions

Com/mysql/jdbc/exceptions/jdbc4

Com/mysql/jdbc/interceptors

Com/mysql/jdbc/jdbc2

Com/mysql/jdbc/jdbc2/optional

Com/mysql/jdbc/jmx

Com/mysql/jdbc/log

Com/mysql/jdbc/profiler

Com/mysql/jdbc/util

Org

Org/gjt

Org/gjt/mm

Org/gjt/mm/mysql

Tim? Plus Server number? According to? Source? Match? Buy?

AS7? Move? Points? For? Two? Kind of? Shape? Style? one? Kind of? Is it a domain shape? Style? Of? one? Kind of? Yes? standalone, here? Inside? I? Guys? Choose? Choose standalone. ?

Fight? Open JBOSS_HOME\ standalone\ configuration\ standalone.xml? Piece? in? Down? Tim? Plus? Such as? Down? Inside? Rong?:

Example 3. Mysql-connector-java-5.1.15.jar.index

Jdbc:mysql://192.168.1.150:3306/hospital?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf-8

Com.mysql

TRANSACTION_READ_COMMITTED

ten

one hundred

True

False

FailingConnectionOnly

Runes

Runes

thirty-two

Example 4. Mysql-connector-java-5.1.15.jar.index

Com.mysql.jdbc.jdbc2.optional.MysqlXADataSource

After reading the above, have you mastered how to configure MySQL data sources in JBoss? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report