JBossAS7 configure MySQL data source _ MySQL

Source: Internet
Author: User
JBossAS7 configure MySQL data source bitsCN.com

AS7 Mo? Recognize? ? Number? Data? Source? Yes? H2, though? Why? H2 party? Right ?, But? Yes? I? ? ? Born? Production? Ring? Environment? All? Yes? MySQL ,? ORACLE ,? SQL Server residence? Many ?, Ben? Text? ? ? Such? What? In? AS7? Set? MySQL count? Data? SOURCE ?.?

Root? Data? Jboss club? Zone? ? Text? ?, Configuration? Set? I? ? New? ? Number? Data? Source? Big? To? Points? Is it? Two? Step ?.? ? ? Such? Lower? :

Jia? Incoming? JDBC drive? Dynamic? Text? ?

In? JBOSS_HOME/modules? ? Lower? Jia? Incoming? Such? Lower? Object? ? End? Structure? And? Text? ? :

JBOSS_HOME

+-Modules

+-Com

+-Mysql

+-Main

+-Module. xml

+-Mysql-connector-java-5.1.15.jar (mysql jdbc driver jar File, version depends on their situation)

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

Module. xml? Inner? Rong? Such? Lower? :

Example 1. module. xml

The mysql-connector-java-5.1.15.jar.index? Inner? Rong? Such? Lower? :

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

Tian? Jia? Number of servers? Data? Source? Configuration? Set?

AS7 startup? Dynamic? Points? Is it? Two? ? Shape? Formula ?, I? ? Yes? Domain? ? ?, I? ? Yes? Standalone, this? In? Me? ? Select? ? Standalone .?

? Open? JBOSS_HOME/standalone/configuration/standalone. xml? ?, In? Lower? Tian? Jia? Such? Lower? Inner? 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

10

100

True

False

FailingConnectionOnly

Runes

Runes

32

Why? After? In? Lower? Tian? Jia? Such? Lower? Inner? Rong? :

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

Com. mysql. jdbc. jdbc2.optional. MysqlXADataSource

OK, this? ? ? ? Cheng? ? MySQL count? Data? Source? ? Configuration? Set ?, Now? In? Use? Standalone? Shape? ? Qi? Dynamic? AS7, yes? Look? To? Lost? Incoming? Medium? Yes? MySQL count? Data? Source? ? ? Inner? Rong ?, Such? Lower? Figure? :

BitsCN.com
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.