# module.xml
<module xmlns="urn:jboss:module:1.0" name="com.mysql">
<resources>
<resource-root path=“mysql-connector-java-5.1.32-bin.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
</dependencies>
</module>
# drivers
<driver name=“mysql" module="com.mysql“>
<driver-class>com.mysql.jdbc.Driver</driver-class>
</driver>
# mysql datasource
<datasource jta="false" jndi-name="java:/mysqlJNDI" pool-name=“mysqlDS" enabled="true" use-ccm="false">
<connection-url>jdbc:mysql://xxx.xxx.xxx.xxx:3306/mysql</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<driver>mysql</driver>
<pool>
<min-pool-size>2</min-pool-size>
<max-pool-size>5</max-pool-size>
<prefill>true</prefill>
</pool>
<security>
<user-name>jboss</user-name>
<password>jboss</password>
</security>
</datasource>
<security>
<security-domain>encds</security-domain>
</security>
<security-domain name="encds" cache-type="default">
<authentication>
<login-module code="org.picketbox.datasource.security.SecureIdentityLoginModule" flag="required">
<module-option name="username" value="username"/>
<module-option name="password" value="enc_pwd"/>
<module-option name="managedConnectionFactoryName" value="jboss.jca:service=LocalTxCM"/>
</login-module>
</authentication>
</security-domain>
'일 > WAS' 카테고리의 다른 글
JBoss Deploy / 제이보스 디플로이(deploy, 어플리케이션 배포) (0) | 2019.11.27 |
---|---|
JBoss EAP 6/7 - vault : 패스워드 암호화 (0) | 2019.11.27 |
EAP6 access log 엑세스 로그 combined 컴바인드 설정 (0) | 2019.11.27 |
EAP7 access log 설정 (0) | 2019.11.27 |
Tomcat Log Encoding / 톰캣 로그 한글깨짐 (0) | 2019.11.27 |