Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MongoDB extension #480

Merged
merged 1 commit into from Nov 28, 2019

Conversation

jamesnetherton
Copy link
Contributor

fixes #302

Copy link
Contributor

@ppalaga ppalaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A question inline

@Produces
@Singleton
@Named("camelMongoClient")
public com.mongodb.MongoClient camelMongoClient(MongoClient delegate) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we install the com.mongodb.MongoClient into the Camel registry using MongoClientBuildItem ? Avoiding CDI could bring some performance benefits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll see if it's possible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest changes remove the CDI bits in favour of MongoClientBuildItem.

Copy link
Contributor

@ppalaga ppalaga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks a lot!

@ppalaga
Copy link
Contributor

ppalaga commented Nov 27, 2019

ok to test

@asf-ci
Copy link

asf-ci commented Nov 27, 2019

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/camel-quarkus-pr/436/

@lburgazzoli lburgazzoli merged commit 2fdbb4e into apache:master Nov 28, 2019
@jamesnetherton jamesnetherton deleted the camel-mongodb-extension branch November 28, 2019 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cerate a Camel MongoDB extension
5 participants