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

ASF GitHub Bot commented on CAMEL-12989:
----------------------------------------

davisruk commented on issue #2664: CAMEL-12989 Allow Endpoint to set the key 
that ProducerCache uses
URL: https://github.com/apache/camel/pull/2664#issuecomment-446160099
 
 
   OK, I think my IDE has applied wholesale style changes on the files! Before 
I made the checkstyle corrections  the diff was working fine. I will revert the 
commit and reapply the checkstyle corrections without the aid of IDE.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Allow Endpoint to set the key that ProducerCache uses
> -----------------------------------------------------
>
>                 Key: CAMEL-12989
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12989
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.23.0
>            Reporter: Richard Davis
>            Priority: Minor
>              Labels: features
>
> ProducerCache is heavily tied to Endpoint URIs. Using the Endpoint URI as the 
> key to the cache does not allow for the creation of Endpoints with the same 
> URI but different configurations. For example, using a RecipientList to call 
> the same SOAP endpoint but with different SSL certificates isn't currently 
> possible. As the URI is always the same.the ProducerCache will always use the 
> first Endpoint it added to the map even if multiple Endpoints are added to 
> the CamelContext with different keys.
> Adding getProducerCacheKey & setProducerCacheKey methods to the Endpoint 
> interface would allow for setting the key programmatically. 
> ProducerCache.doGetProducer would use the getProducerCacheKey method instead 
> of getEndpointUri.
> DefaultEndpoint would have a new member variable producerCacheKey and could 
> implement the getter such that if the producerCacheKey member was not set it 
> would return getEndpointUri()



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to