contactreji commented on issue #892: Defining datasource in groovy and using in 
XML routes
URL: https://github.com/apache/camel-k/issues/892#issuecomment-528395264
 
 
   Tried this too
   ```
   import org.apache.activemq.ActiveMQConnectionFactory;
   import org.apache.activemq.camel.component.ActiveMQComponent;
   import org.apache.activemq.pool.PooledConnectionFactory;
   import org.apache.camel.component.jms.JmsConfiguration;
   context {
       registry {
   
   activeMQConnectionFactory = [ brokerURL: 'tcp://localhost:61616', userName: 
'admin', password: 'admin' ] as ActiveMQConnectionFactory
   
   pooledConnectionFactory = [ maxConnections: 8, 
setMaximumActiveSessionPerConnection: 20, blockIfSessionPoolIsFull: true, 
idleTimeout:50, connectionFactory: grep('activeMQConnectionFactory') ]  as  
PooledConnectionFactory
   
   jmsConfig = [ connectionFactory: grep('pooledConnectionFactory'), 
concurrentConsumers: 10, replyToMaxConcurrentConsumers: 10 ] as JmsConfiguration
   
   activemq = [ configuration: grep('jmsConfig')] as ActiveMQComponent
           }
   }
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to