Hi, I'm trying to modify the default jdbcconnectiondescriptor at runtime. I do this by change the PersistenceBrokerFactory implementation to my custom class, which extends PersistenceBrokerFactoryDefaultImpl and adds a static part like this:
static { List descriptors = MetadataManager.getInstance().connectionRepository().getAllDescriptor(); for (Iterator iter = descriptors.iterator(); iter.hasNext();) { JdbcConnectionDescriptor desc = (JdbcConnectionDescriptor) iter.next(); if (desc.isDefaultConnection()) { changeDescriptor(desc); } } } private static void changeDescriptor(JdbcConnectionDescriptor desc) { // modifies the descriptor String dbname = Props.getString("dbname"); String dbhost = Props.getString("dbhost"); String dbalias = "//" + dbhost + "/" + dbname; log.debug("changeDescriptor - setting dbAlias : " + dbalias); connectionDescriptor.setDbAlias(dbalias); // do this for username, password etc. } there is no problem with this all the properties are set. But it seems that another operation resets the dbalias, because I get the following error: Error getting Connection from DriverManager with url (jdbc:postgresql:) and driver (org.postgresql.Driver) I'm using 1.0 rc4. Any ideas? Sven --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]