Details
-
Type:
Improvement
-
Status: Resolved
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: camel-jms
-
Labels:None
-
Estimated Complexity:Unknown
Description
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.