-
1. Re: JBoss 5/6 Encrypting Data Source Passwords - Timeout
jaikiran Nov 18, 2011 10:49 PM (in response to oraclerob)Post the contents of your -ds.xml.
-
2. Re: JBoss 5/6 Encrypting Data Source Passwords - Timeout
oraclerob Nov 18, 2011 11:33 PM (in response to jaikiran)<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: mysql-ds.xml,v 1.3.2.1 2004/12/01 11:46:00 schrouf Exp $ -->
<!-- Datasource config for MySQL using 3.0.9 available from:
http://www.mysql.com/downloads/api-jdbc-stable.html
-->
<datasources>
<local-tx-datasource>
<jndi-name>jdbc/MySQLDS</jndi-name>
<connection-url>jdbc:mysql://localhost/ipayby</connection-url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<min-pool-size>5</min-pool-size>
<max-pool-size>50</max-pool-size>
<idle-timeout-minutes>0</idle-timeout-minutes>
<security-domain>EncryptDBPassword</security-domain>
<metadata>
<type-mapping>MySQL</type-mapping>
</metadata>
</local-tx-datasource>
</datasources>
-
3. Re: JBoss 5/6 Encrypting Data Source Passwords - Timeout
oraclerob Nov 20, 2011 8:29 PM (in response to oraclerob)Here is my login-config. Password obscured. Still awaiting some help as I can't believe this is a bug - as it is so fundemental. I think we are getting an "access denied" message because the password is not being decrypted properly when the session times out and has to log in again, so a standard mysql message is thrown.
<application-policy name="EncryptDBPassword">
<authentication>
<login-module code="org.jboss.resource.security.SecureIdentityLoginModule" flag="required">
<module-option name="username">root</module-option>
<module-option name="password">xxxxxxxxxxxxxxxxx</module-option>
<module-option name="managedConnectionFactoryName">jboss.jca:name=jdbc/MySQLDS,service=LocalTxCM</module-option>
</login-module>
</authentication>
</application-policy>