[ 
https://issues.apache.org/jira/browse/CAMEL-9585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15148118#comment-15148118
 ] 

Tomohisa Igarashi commented on CAMEL-9585:
------------------------------------------

Ah that's a good point, it wouldn't work well with connection pool. So the 
usecase would be limited even at producer side. And agree that it doesn't make 
sense on consumer side. The user who want this are thinking about re-using the 
credentials used for SOAP inbound message, but it's not a common usecase here 
as well.

> 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
>            Reporter: Tomohisa Igarashi
>            Priority: Minor
>
> 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