cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <>
Subject [jira] [Created] (CAY-1972) Can't override DataSources of multi-module projects
Date Sat, 22 Nov 2014 14:59:33 GMT
Andrus Adamchik created CAY-1972:

             Summary: Can't override DataSources of multi-module projects 
                 Key: CAY-1972
             Project: Cayenne
          Issue Type: Improvement
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik

Here is a situation:

Collection<String> configs = // configs in random, changing order
ServerRuntime runtime = new ServerRuntimeBuilder().addConfigs(configs).build();

The resulting runtime has multiple DataNodes. Now in development I need to provide connection
data for each of the DataNodes using properties per [1]. Due to the random order of configs
collection, domain name in the resulting stack also changes between the invocations. So I
can't use 'cayenne.jdbc.driver.domain_name.node_name' property reliably. 

We need an easy way to fix the domain name in a multi-project config. Perhaps ServerRuntimeBuilder
can do that by overriding ConfigurationNameMapper service to return a fixed String.


This message was sent by Atlassian JIRA

View raw message