Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16769

camel-sql: Being able to use dataSource from the exchange (not from registry)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.11.0
    • None
    • camel-sql
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gasdia73 roberto gasdia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: