Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the early version of the new website
https://camel.apache.org/staging/
We would very much like to receive any feedback on the new site, please join the discussion on the Camel user mailing list.
NATS ComponentAvailable since Camel 2.17.0 NATS is a fast and reliable messaging platform. Maven users will need to add the following dependency to their <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-nats</artifactId> <!-- use the same version as your Camel core version --> <version>x.y.z</version> </dependency> URI formatnats:servers[?options] Where servers represents the list of NATS servers. Options
Headers
Producer example: from("direct:send").to("nats://localhost:4222?topic=test");
Consumer example: from("nats://localhost:4222?topic=test&maxMessages=5&queueName=test").to("mock:result"); |