[
https://issues.apache.org/jira/browse/CAMEL-16714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17362245#comment-17362245
]
Claus Ibsen commented on CAMEL-16714:
-------------------------------------
On main branch I cannot reproduce this - uses this route to call the sink, and
had started a local ActiveMQ broker
- route:
from:
"kamelet:jms-source?destinationName=cheese&brokerURL=tcp://localhost:61616"
steps:
- to:
uri: "log:info"
And used its web console to send a message to the cheese queue
17:58:47.747 [org.apache.camel.main.KameletMain.main()] INFO
o.a.c.i.engine.AbstractCamelContext - Routes startup summary (total:2 started:2)
17:58:47.747 [org.apache.camel.main.KameletMain.main()] INFO
o.a.c.i.engine.AbstractCamelContext - Started route1 (kamelet://jms-source)
17:58:47.747 [org.apache.camel.main.KameletMain.main()] INFO
o.a.c.i.engine.AbstractCamelContext - Started jms-source-1
(kamelet-reify:jms:queue:cheese)
17:58:47.747 [org.apache.camel.main.KameletMain.main()] INFO
o.a.c.i.engine.AbstractCamelContext - Apache Camel 3.11.0-SNAPSHOT
(MyEarthQuake) started in 1s129ms (build:17ms init:887ms start:225ms)
17:58:47.747 [org.apache.camel.main.KameletMain.main()] INFO
o.a.c.i.engine.AbstractCamelContext - Lightweight mode enabled. Performing
optimizations and memory reduction.
17:59:57.831 [Camel (MyEarthQuake) thread #0 - JmsConsumer[cheese]] INFO info
- Exchange[ExchangePattern: InOnly, BodyType: String, Body: Hello World]
> Camel no resolving bean from Kamelets with local route beans
> ------------------------------------------------------------
>
> Key: CAMEL-16714
> URL: https://issues.apache.org/jira/browse/CAMEL-16714
> Project: Camel
> Issue Type: Task
> Components: camel-kamelet
> Reporter: Otavio Rodolfo Piske
> Priority: Major
> Attachments: jms-source-binding.yaml, jms-source.kamelet.yaml
>
>
> I am working on a Kamelet defined according to the attachment. However, when
> I define the binding, the integration fails because it cannot find the bean.
> The integration fails with:
>
> {code:java}
> 2021-06-11 11:33:57,960 ERROR [io.qua.run.Application] (main) Failed to start
> application (with profile prod): java.lang.IllegalArgumentException: Property
> with key [connectionFactoryBean] not found in properties from text:
> jms:queue:person?connectionFactory=#bean:{{connectionFactoryBean}} {code}
> In addition to how it is defined in the kamelet, I have also tried using:
>
> - kamelet-reify with allowAutoWiredConnectionFactory true or false
> {code:java}
> uri: "kamelet-reify:jms:{{destinationType}}:{{destinationName}}"
> parameters:
> connectionFactory: "#bean:{{connectionFactoryBean}}"
> allowAutoWiredConnectionFactory: true
> steps:
> - to:
> uri: "log:info" {code}
> - jms directly
> {code:java}
> uri: "jms:{{destinationType}}:{{destinationName}}"
> parameters:
> connectionFactory: "#bean:{{connectionFactoryBean}}"
> steps:
> - to:
> uri: "log:info"{code}
>
> - the old way of setting up the bean
> {code:java}
> uri: "jms:{{destinationType}}:{{destinationName}}"
> parameters:
> connectionFactory: "#{{connectionFactoryBean}}"
> steps:
> - to:
> uri: "log:info"{code}
>
> Neither seems to work.
>
> [^jms-source-binding.yaml]
> [^jms-source.kamelet.yaml]
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)