davsclaus commented on issue #2444:
URL: https://github.com/apache/camel-k/issues/2444#issuecomment-868212529
Instead you can use a script to create the bean
```
flow:
beans:
- name: mongoDBConnection
type: 'groovy'
bean-type 'com.mongodb.client.MongoClient`
script:
'com.mongodb.client.MongoClients.create("mongodb://myuser:[email protected]:27017")'
```
--
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]