You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "roberto gasdia (Jira)" <ji...@apache.org> on 2021/06/29 14:32:00 UTC

[jira] [Created] (CAMEL-16769) Being able to use dataSource from the exchange (not from registry)

roberto gasdia created CAMEL-16769:
--------------------------------------

             Summary: Being able to use dataSource from the exchange (not from registry)
                 Key: CAMEL-16769
                 URL: https://issues.apache.org/jira/browse/CAMEL-16769
             Project: Camel
          Issue Type: Improvement
          Components: camel-sql
    Affects Versions: 3.11.0
            Reporter: roberto gasdia


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)