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

Claus Ibsen commented on CAMEL-20740:
-------------------------------------

This can be done today without new syntax: register a second component as a 
bean, and configure it with camel.beans:

{code}
camel.beans.jms2 = #class:org.apache.camel.component.jms.JmsComponent
camel.beans.jms2.connectionFactory = #bean:otherCF
{code}

Then jms2:queue:foo uses that component. The JMS component docs show this setup 
(CAMEL-25783). Closing as done.

_Claude Code on behalf of davsclaus_

> Allow to configure multiple components of same type in application.properties
> -----------------------------------------------------------------------------
>
>                 Key: CAMEL-20740
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20740
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-main
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 4.x
>
>
> See if we can make it easier to define 2 JMS or 2+ SQL components with their 
> own configuration and do all of this via application.properties.
> The default camel.component.sql is for the default component only.
> So something
> camel.component.mysql.alias=sql
> camel.component.mysql.batch=123
> camel.component.oracle-db.alias=sql
> camel.component.oracle-db.batch=444
> So the name of the component needs to use a non OOTB component name and have 
> an alias option that refers to the actual component.
> This does impact tooling as they dont understand these "fake components" so 
> maybe we need to put this into another prefix to avoid confusion.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to