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:
[email protected]


With regards,
Apache Git Services

Reply via email to