Tomohisa Igarashi created CAMEL-9585:
----------------------------------------

             Summary: camel-jms: Support dynamic username/password settings
                 Key: CAMEL-9585
                 URL: https://issues.apache.org/jira/browse/CAMEL-9585
             Project: Camel
          Issue Type: Improvement
          Components: camel-jms
    Affects Versions: 2.17.0
            Reporter: Tomohisa Igarashi


Right now camel-jms sets username/password when it starts up here
https://github.com/apache/camel/blob/master/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java#L864-L871

But it would be great if it can override the credentials per exchange 
dynamically via exchange header or something like that.

The org.springframework.jms.connection.UserCredentialsConnectionFactoryAdapter 
has setCredentialsForCurrentThread() method, which looks useful for this 
purpose.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to