Reputation: 363
I'm new with ActiveMQ and Apache Camel and have some questions about them and Camel setup.
I'm running ActiveMQ Artemis 2.14.0 (docker image) and there is MQTT broker running on port 1883.
Client1 is publishing some messages using MQTT and client2 is subscribed and retrieving those messages. Now I would like to add Camel alongside/with ActiveMQ Artemis to be as controller (router) so I can control forwarding of MQTT data or edit it and also to do some MQTT to REST transitions.
I don't know which components of ActiveMQ Artemis and Camel I need to use.
Is Camel already in ActiveMQ Artemis and do I need just to add something in configuration to activate it?
If yes, then I don't know where and which configuration files inside ActiveMQ Artemis I need to edit to setup Camel in it.
When searching on the Internet I see a lot of Java and XML code for Camel configuration, but it's all kinda messy. It's just a bunch of puzzles, and I can't figure out what puzzle to put where.
Upvotes: 1
Views: 3777
Reputation: 34973
Camel does not ship with ActiveMQ Artemis. You have two basic options for configuring Camel. You can download it and configure it independently of the broker. Or you can put your Camel routes into a web application and deploy it to the broker's embedded servlet contain (i.e. Jetty) as demonstrated by the "camel" example shipped with ActiveMQ Artemis (in the examples/features/standard/camel
directory).
Please note that the documentation for the JMS component will say that you should use the ActiveMQ component if you're using ActiveMQ. This is only valid if you're using ActiveMQ 5.x and not ActiveMQ Artemis.
Also, if you want to use a pooled connection factory you can use this which is an independent project based on the ActiveMQ 5.x JMS pooled connection factory.
Upvotes: 1