[
https://issues.apache.org/jira/browse/CAMEL-12956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16976876#comment-16976876
]
Constantino Cronemberger edited comment on CAMEL-12956 at 11/18/19 8:51 PM:
----------------------------------------------------------------------------
The notation # works only in the URI parameter. If you try to use it in the
Spring Boot property camel.component.activemq.connection-factory it does not
work. Would this be enough to reopen this issue? Or is there a way to enable #
for this case?
Interesting to notice that if I replace:
<artifactId>camel-activemq</artifactId>
by
<artifactId>camel-activemq-starter</artifactId>
in the example under camel-example-spring-boot-activemq it stops working.
On the other hand I found another problem in the the class JmsComponent in the
method getConfiguration where it tries to use the applicationContext attribute
before it gets initialized. I will open another issue for this problem.
was (Author: ccronemberger):
The notation # works only in the URI parameter. If you try to use it in the
Spring Boot property camel.component.activemq.connection-factory it does not
work. Would this be enough to reopen this issue?
Interesting to notice that if I replace:
<artifactId>camel-activemq</artifactId>
by
<artifactId>camel-activemq-starter</artifactId>
in the example under camel-example-spring-boot-activemq it stops working.
On the other hand I found another problem in the the class JmsComponent in the
method getConfiguration where it tries to use the applicationContext attribute
before it gets initialized. I will open another issue for this problem.
> Spring Boot Auto-Configuration via application.properties does not work
> -----------------------------------------------------------------------
>
> Key: CAMEL-12956
> URL: https://issues.apache.org/jira/browse/CAMEL-12956
> Project: Camel
> Issue Type: Bug
> Components: camel-activemq, camel-jms, camel-spring-boot,
> camel-spring-boot-starters
> Affects Versions: 2.22.2
> Reporter: Stephan Epping
> Assignee: Claus Ibsen
> Priority: Major
>
> I am trying to configure camel with spring boot to use active MQ. But the jms
> connection factory (activemq) gets not picked up automatically during auto
> configuration. Thus, I tried to configure it via application.properties
> {code:java}
> camel.component.jms.connection-factory=org.apache.activemq.ActiveMQConnectionFactory{code}
> But then I get an error on startup stating, that the expected datatype is
> {code:java}
> javax.jms.ConnectionFactory{code}
> and not
> {code:java}
> String{code}
> The only solutions I have found is not using autoconfiguration and
> configuring *JmsComponent* by hand or using a *ComponentCustomizer*
> programatically. This seems to be a Bug, as other component auto
> configurations expect a String as connectionFactory property.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)