数据库|mysql教程
,是,数据源
数据库-mysql教程
找人破解网站下载源码,ubuntu终端进入桌面,开启服务器tomcat,爬虫抓pubmed,PHP蜜语翻译器,宁seolzw
AS7默?认?的?数?据?源?是?H2,虽?然?H2方?便?,但?是?一?般?的?生?产?环?境?都?是?MySQL、?ORACLE、?SQLServer居?多?,本?文?描?述?如?何?在?AS7配?置?MySQL数?据?源?。?
克米设计app源码,ubuntu安装搜狗后,tomcat是无状态吗,pythone实现爬虫,南京php分销平台定制,乐云seo招都推高粱seolzw
根?据?Jboss社?区?的?文?档?,配?置?一?个?新?的?数?据?源?大?致?分?为?两?步?。?描?述?如?下?:
电影视频网源码,frp开放端口ubuntu,农村水爬虫图片,php商务网站建设项目报告书,酒店seo技术lzw
加?入?JDBC驱?动?文?件?
在?JBOSS_HOME/modules目?录?下?加?入?如?下?目?录?结?构?及?文?件?:
JBOSS_HOME
+- modules
+- com
+- mysql
+- main
+- module.xml
+- mysql-connector-java-5.1.15.jar (mysql的jdbc驱动jar文件,版本根据各自情况而定)
+- mysql-connector-java-5.1.15.jar.index
module.xml的?内?容?如?下?:
例1. module.xml
mysql-connector-java-5.1.15.jar.index的?内?容?如?下?:
例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
添?加?Server数?据?源?配?置?
AS7启?动?分?为?两?种?形?式?,一?种?是?domain形?式?的?,一?种?是?standalone,这?里?我?们?选?择?standalone。?
打?开?JBOSS_HOME/standalone/configuration/standalone.xml文?件?,在?下?添?加?如?下?内?容?:
例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
然?后?在?下?添?加?如?下?内?容?:
例4. mysql-connector-java-5.1.15.jar.index
com.mysql.jdbc.jdbc2.optional.MysqlXADataSource
OK,这?样?就?完?成?了?MySQL数?据?源?的?配?置?,现?在?用?standalone的?形?式?启?动?AS7,会?看?到?输?入?中?有?MySQL数?据?源?的?的?内?容?,如?下?图?:
如果觉得《JBoss AS7配置MySQL数据源【MySQL】》对你有帮助,请点赞、收藏,并留下你的观点哦!