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

Improve documentation #653

Closed
Emmerson-Miranda opened this issue May 11, 2019 · 6 comments
Closed

Improve documentation #653

Emmerson-Miranda opened this issue May 11, 2019 · 6 comments

Comments

@Emmerson-Miranda
Copy link

Congrats the project looks really good.

I want to evaluate if I can use It in production projects.

I wonder if you can provide an example about how to use "kamel run --repository" and how to use camel-binding to call java clases stored in custom jar libraries.

https://camel.apache.org/bean-binding.html

@oscerd
Copy link
Contributor

oscerd commented May 13, 2019

@Emmerson-Miranda
Copy link
Author

Thanks,

The documentation example use "ExampleBean", however what happen is the "ExampleBean" is inside a MyCustomLibrary.jar.

Assuming I want to use "ExampleBean" from printer.groovy (see examples) how I can run kamel command line? can we do something like following:

$kamel run printer.groovy --library-dependency MyCustomLibrary.jar

@lburgazzoli
Copy link
Contributor

Your library need to be hosted on an maven repo then you can run

kamel run --dependency mvn:your.company/your.artifact/version printer.groovy

If the library is not on maven central:

kamel run --repository http://your.repo --dependency mvn:your.company/your.artifact/version printer.groovy

@Emmerson-Miranda
Copy link
Author

Hello I tried with "camel-activemq" dependency to connect to ActiveMQ 5.15.9 (not Artemis) but is not working.

The command line I run is:-
$ kamel run --dependency mvn:org.apache.camel/camel-activemq/3.0.0-M2 --dev MyActiveMQPublisherRoute.java

Please find attached the source code.
MyActiveMQPublisherRoute.java.zip

@nicolaferraro
Copy link
Member

I think you need to set the integration platform to use Camel 3.0.0-M2 too. You cannot mix Camel 2 and Camel 3 libs.

Can you try to:

kubectl edit integrationplatform

Then change the camelVersion to 3.0.0-M2. Then redeploy the integration.

We're going to set Camel 3 as default from next release.

@Emmerson-Miranda
Copy link
Author

Great, is working.

In my case I have minishift and use oc command

oc edit integrationplatform

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

No branches or pull requests

4 participants