标签:systemd initial localhost ann jdbc core -- oca log
实践背景:基于wildfly开发分布式服务,包括web服务,DBA(数据访问)服务及其它业务服务,全部使用分布式方式开发与部署。
实践1:分布式服务(服务端角色)配置
<datasource jta="true" jndi-name="java:/XboMdtDS" pool-name="XboMdtDS" enabled="true" use-ccm="true"> <connection-url>jdbc:mysql://192.168.50.123:3306/xbomdt</connection-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <driver>mysql</driver> <pool> <min-pool-size>5</min-pool-size> <initial-pool-size>5</initial-pool-size> <max-pool-size>10</max-pool-size> </pool> <security> <user-name>mysql</user-name> <password>mysql</password> </security> <validation> <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/> <background-validation>true</background-validation> <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/> </validation> </datasource>
<driver name="mysql" module="jdbc.mysql"> <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADatasource</xa-datasource-class> </driver>
<?xml version="1.0" encoding="UTF-8"?> <module xmlns="urn:jboss:module:1.3" name="jdbc.mysql"> <resources> <resource-root path="mysql-connector-java-5.1.38.jar"/> </resources> <dependencies> <module name="javax.api"/> <module name="javax.transaction.api"/> </dependencies> </module>
mysql-connector-java-5.1.38.jar。
<interfaces> <interface name="management"> <inet-address value="${jboss.bind.address.management:0.0.0.0}"/> </interface> <interface name="public"> <inet-address value="${jboss.bind.address:0.0.0.0}"/> </interface> <interface name="unsecure"> <inet-address value="${jboss.bind.address.unsecure:0.0.0.0}"/> </interface> </interfaces>
注:此配置目的是使用ip地址可访问服务,配置之前只能使用localhost或127.0.0.1访问。
2016-12-13 14:43:06,894 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) WFLYDS0013: Started FileSystemDeploymentService for directory /home/pacs/wildfly/standalone/deployments 2016-12-13 14:43:07,133 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://0.0.0.0:9990/management 2016-12-13 14:43:07,134 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://0.0.0.0:9990 2016-12-13 14:43:07,134 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 9.0.2.Final (WildFly Core 1.0.2.Final) started in 4207ms - Started 209 of 385 services (210 services are lazy, passive or on-demand)
标签:systemd initial localhost ann jdbc core -- oca log
原文地址:http://www.cnblogs.com/coder-fang/p/6169998.html