You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by GitBox <gi...@apache.org> on 2019/09/06 09:48:46 UTC
[GitHub] [camel-k] WillemJiang commented on issue #892: Defining datasource
in groovy and using in XML routes
WillemJiang commented on issue #892: Defining datasource in groovy and using in XML routes
URL: https://github.com/apache/camel-k/issues/892#issuecomment-528790229
@contactreji
camel-k groovy provides a components DSL to help you set the activemq component properties in the [closure](http://docs.groovy-lang.org/latest/html/api/groovy/lang/Closure.html) just like this
```
import org.apache.activemq.camel.component.ActiveMQComponent;
context {
components {
activeMQ(ActiveMQComponent) {
brokerURL = 'tcp://localhost:61616'
userName = 'admin'
password = 'admin'
}
}
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services