You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2021/09/15 14:38:00 UTC
[jira] [Created] (CAMEL-16978) Unable to configure multiple xchange
endpoints with different crypto exchanges
James Netherton created CAMEL-16978:
---------------------------------------
Summary: Unable to configure multiple xchange endpoints with different crypto exchanges
Key: CAMEL-16978
URL: https://issues.apache.org/jira/browse/CAMEL-16978
Project: Camel
Issue Type: Bug
Reporter: James Netherton
It seems reasonable to have a route like:
{code}
from("direct:binance")
.to("xchange:binance");
from("direct:kraken")
.to("xchange:kraken");
{code}
Unfortunately, this only seems possible by creating a dedicated component instance for each crypto exchange. The xchange instance is cached in the component, so the first endpoint to initialize it 'wins'.
https://github.com/apache/camel/blob/main/components/camel-xchange/src/main/java/org/apache/camel/component/xchange/XChangeComponent.java#L55-L68
I guess it should be cached per crypto exchange used on the endpoint(s).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)