What is different to createProducerTemplate via AutoConfigure and
EndPointInject
in SpringBoot ? are the both way correct?
via EndpointInject I could create multiple instance of
ProducerTemplate, but via Autoconfig I could only create one
ProducerTemplate instace
That solution is actually not very efficient as the Producer will continually
be created if the RecipientList endpoints are constantly changing which is
likely for my case. The problem is that the cache is keyed on the URI but for
my use case this is not enough. I really need the ability to set
I have found what I believe to be the problem:
ProducerCache.doGetProducer does not compare the Endpoint contained in the
Producer returned by its producers Map with the endpoint supplied by
RecipientList.resolveEndpoint. ProducerCache keys its Producers by endpoint URI
but this does not allow