[GeoNetwork-devel] multiple datasources

Hi,

Does anyone use multiple datasources in their geonetwork instance ?
In the code, i see that the DataSource bean (for the main db) is wired with the getBean(DataSource.class) command, what fails if you declare multiple datasources.

If nobody did this already, i will submit a PR changing the bean wiring from class type to bean id.

Cheers

···

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492

Hi Florent

Never used several data sources, for custom projects I usually create the tables in the GeoNetwork database. In any case, looks a good change to wire by identifier.

Regards,
Jose García

···

On Mon, Nov 30, 2015 at 1:31 PM, Florent Gravin <florent.gravin@anonymised.com> wrote:

Hi,

Does anyone use multiple datasources in their geonetwork instance ?
In the code, i see that the DataSource bean (for the main db) is wired with the getBean(DataSource.class) command, what fails if you declare multiple datasources.

If nobody did this already, i will submit a PR changing the bean wiring from class type to bean id.

Cheers

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492


Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Vriendelijke groeten / Kind regards,

Jose García


Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664

Please consider the environment before printing this email.