We have a multi-tenant app where each tenant is a separate database. We’re trying to containerize our app and while we can load the known datasources on server startup, we need a way to add datasources for tenants created after the application has started.
Was playing around with Query Listener as a way to check if a datasource is loaded, and if not, do a tenant lookup and add the datasource. But then I ran into a roadblock - if the datasource doesn’t exist, Lucee will throw an exception prior to calling the Query Listener’s before
method.
Knowing that, we’ll have to alter our approach, but wondered if there was a specific reason why it was implemented this way?
Thanks all!
2 posts - 2 participants