Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Using Spring's AbstractRoutingDataSource with EL

Hi Andreas,

I am not familiar with AbstractRoutingDataSource but if it solves multitenancy then this may be of your interest:


From: eclipselink-users <eclipselink-users-bounces@xxxxxxxxxxx> on behalf of Andreas Joseph Krogh <andreas@xxxxxxxxxx>
Sent: 04 May 2021 17:37
To: eclipselink-users@xxxxxxxxxxx
Subject: [eclipselink-users] Using Spring's AbstractRoutingDataSource with EL

Hi all.

We are using Spring's AbstractRoutingDataSource successfully to proxy some services to different databases (with the same schema, only different data/customers).

Does EL provide a similar way to use the same @Entity-mapped model against different DataSources? I'm not interested in named PUs as the routing should be done at runtime, dynamically, based on some ThreadLocal the application controls (ie. sets/removes at the start/end of a HTTP-request).

Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963

Back to the top