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

examples with camel-amqp and connection factory #1067

Merged
merged 1 commit into from Dec 19, 2019

Conversation

hguerrero
Copy link
Contributor

added examples for

  • groovy
  • javascript
  • java

on how to configure camel-amqp and ConnectionFactory

Release Note

NONE

//
components.get('amqp')
.setConnectionFactory(
new org.apache.qpid.jms.JmsConnectionFactory('amqp://' + java.lang.System.getenv('BROKER_URL'))
Copy link
Contributor

Choose a reason for hiding this comment

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

does this work ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you only need to pass the BROKER_URL env with the hostname of your AMQP broker.

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean, does the ‘new ...JmsConectionFactory’ work ?

I remember it was needed to first create the type with ‘Java.type(...)’

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Works in my cluster using M4 operator

@lburgazzoli lburgazzoli merged commit dbdfd56 into apache:master Dec 19, 2019
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.

None yet

2 participants