What value should I set to pass properties in tomee.xml? Resource id=" jdbc/mydatasource" type="javax.sql.DataSource" factory-name="createJDBCDataSource" class-name="com.jdbc.crypto.factory.SecuredJdbcDataSourceFactory" constructor="properties"> # tomcat pool configuration auth=Container jdbcDriver = com.microsoft.sqlserver.jdbc.SQLServerDriver jdbcUrl = jdbc:sqlserver://***:1433;databaseName=*** userName = **** password = 1RwfeJY8mclgyN/TH13LGjHKIBADY= validationQuery = SELECT 1 LogSql = true properties=properties </Resource> ay 27, 2014 6:24:16 PM org.apache.openejb.util.OpenEJBErrorHandler handleUnknownError SEVERE: FATAL ERROR: Unknown error in Assembler. Please send the following stack trace and this message to [email protected] : org.apache.xbean.recipe.MissingFactoryMethodException: Constructor has 0 arugments but expected 1 arguments: public com. jdbc.crypto.factory.SecuredJdbcDataSourceFactory() at org.apache.xbean.recipe.ReflectionUtil.findConstructor(ReflectionUtil.java:622) at org.apache.xbean.recipe.ObjectRecipe.findFactory(ObjectRecipe.java:563) public class SecuredJdbcDataSourceFactory extends DataSourceFactory { public javax.sql.DataSource createJDBCDataSource(Properties properties) throws Exception { System.out.println("Setting decrypted password starts"); properties.setProperty(PROP_PASSWORD, new AesCrypto().decrypt(properties.getProperty(PROP_PASSWORD))); System.out.println("Setting decrypted password ends"); return createDataSource(properties); } } Thank You
Sent from Yahoo Mail on Android
