CdmServerSwitchableDataSources » History » Version 10
Katja Luther, 03/30/2022 11:30 AM
1 | 1 | Andreas Kohlbecker | |
---|---|---|---|
2 | 9 | Katja Luther | # CDM-Server & Switchable DataSources |
3 | 1 | Andreas Kohlbecker | |
4 | |||
5 | 10 | Katja Luther | |
6 | {{toc}} |
||
7 | |||
8 | {{child_pages(depth=1)}} |
||
9 | |||
10 | 3 | Andreas Kohlbecker | _On exposing multiple data sources with a single instance of cdm-remote-webapp._ |
11 | |||
12 | 9 | Katja Luther | |
13 | The following classes are related to the switchable database infrastructure which allows to serve |
||
14 | |||
15 | multiple databases with only a single instance of the cdm-remote-webapp. |
||
16 | |||
17 | 1 | Andreas Kohlbecker | |
18 | 3 | Andreas Kohlbecker | . |
19 | 1 | Andreas Kohlbecker | |
20 | |||
21 | 4 | Andreas Müller | * source:trunk/cdmlib/cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/UpdatableRoutingDataSource.java |
22 | 1 | Andreas Kohlbecker | |
23 | 4 | Andreas Müller | * source:trunk/cdmlib/cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/interceptor/DatasourceContextHandlerInterceptor.java |
24 | 3 | Andreas Kohlbecker | |
25 | |||
26 | This concept however has been deprecated due to several problems of which the term loading issue is most severe one. |
||
27 | |||
28 | This classes should however not deleted since we once might wish to switch back to this concept when we are |
||
29 | |||
30 | able to deal with the implicated issues. |
||
31 | 5 | Andreas Müller | |
32 | |||
33 | |||
34 | 6 | Andreas Müller | * http://stackoverflow.com/questions/14555611/changing-datasource-connection-url-runtime |
35 | 1 | Andreas Kohlbecker | |
36 | 6 | Andreas Müller | * http://docs.spring.io/spring/docs/3.0.x/api/org/springframework/jdbc/datasource/lookup/AbstractRoutingDataSource.html |
37 | 5 | Andreas Müller | |
38 | 6 | Andreas Müller | * http://howtodoinjava.com/2013/12/28/spring-3-2-5-abstractroutingdatasource-example/ |