Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
3.11.0
-
None
-
None
-
Unknown
Description
From what I can tell looking at the source code, It doesn't seem to be possible to instantiate a bean with scope Request (or maybe an instance assigned to an exchange property) and then later have
.toD("sql:{my query}?dataSource=..the bean instance)
wich is mandatory in my use case, because we have a multitenant application where db connection parameters are passed in the request, so we need to be able to create a data source with different settings per each request.
Having to fetch the data source from the registry we cannot make sure that every request has its own DB properly configured.