I want to create endpoints that can be local in one setup and remote (via jms) in another.
What is the best approach?
I thought of creating my own component, ‘abstract’, then send to abstract:foo and in one setup have abstract:foo behave like direct:foo and in another setup behave like jms:queue:foo.
However, I’m not sure this is the cookbook approach and how to implement it exactly (how to do the “in one setup behave like X and in another behave like Y”), without being fragile (relying on different contents of META-INF/services/org/apache/camel/component/abstract in each setup)
So, what is the best approach?
I found the best approach was to create a bean with my own schema name and have it create the desired endpoint (DirectEndpoint or other) according to properties