Hi Romain,
I tried to use DataSource Password Encryption <http://tomee.apache.org/datasource-password-encryption.html> following your steps but i missing some information cause it doesn't work.
is TomEE can decode the password without any additional library?
i have this error *Access denied for user 'username'@'hostname.infocamere.it' (using password: YES)* it was working with plain text. i used the (openejb cipher P@ssw0rd) to crypt the password.
and i'm also using spring
please help :)


my datasource configuration:
*tomee.xml*
<Resource id="myMccplusDS" type="DataSource">
  JdbcDriver com.mysql.jdbc.Driver
  JdbcUrl jdbc:mysql://hostname.infocamere.it:3306/mydatabase
  UserName *username*
  Password *KjGfWPfU7xUzVUv5LG7YLA==*
  PasswordCipher *Static3DES*
  JtaManaged false
</Resource>
*spring.xml*
<bean id="mySqlDataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
    <property name="jndiName" value="java:app/myMccplusDS"/>
</bean>

ciao
Yousef




<http://tomee.apache.org/datasource-password-encryption.html>

--
Yousef Herzallah

Reply via email to