Change Ebean database at runtime?

18 views
Skip to first unread message

Allekto

unread,
Sep 14, 2017, 4:04:43 PM9/14/17
to Play Framework
Hi,

i'm developing an Api using Play and Ebean. I want to implement it so, that in each Api request a userID is being transmitted. Now i want each user to have it's own database, so that ebean connects to the database named like the userID. 

Is this possible, to reconnect Ebean to a different database at runtime?

Cheers,

Gunnar
Reply all
Reply to author
Forward
0 new messages