Hi there, I am using camel HTTP component to do an outbound connection to a remote server. However, depending on my inbound connection I need to communicate to the remote server using different credentials. The remote server uses basicauth. What I have noticed that camel tries to reuse the already authenticated connection in the pool even though the subsequent request may need to be reauthenticated using new credential. What's the best way to configure this in camel. I was thinking to shutdown the connection after each request even though it has performance penalties. Can someone please give me some pointers.
Here is my route: from("direct:inbound") .to("bean:requestMessageTranslator") .setHeader("CamelHttpMethod", constant("POST")) .to("https://host/secure/ssl-gateway?authMethod=Basic&authUsername=username&authPassword=password") ... The username and password gets replaced dynamically with the correct values for each request. But camel still tries to reuse an prior authenticated connection, which is already in the pool I suppose. I have not overridden connection manager or connection manager params etc. Using the defaults provider by http component. Thanks in advance for your time! -- View this message in context: http://camel.465427.n5.nabble.com/Multiple-remote-connection-to-the-same-host-but-different-users-tp4309456p4309456.html Sent from the Camel - Users mailing list archive at Nabble.com.