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