...
Maven users will need to add the following dependency to their pom.xml
for this component:
Code Block |
|
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-infinispan</artifactId>
<version>x.x.x</version>
<!-- use the same version as your Camel core version -->
</dependency>
|
URI format
Code Block |
infinispan://hostName?[options]
|
...
The producer allows sending messages to a local infinispan cache configured in the registry, or to a remote cahe cache using the HotRod protocol.
The consumer allows listening for events from local infinispan cache accessible from the registry.
...
Below is an example route that retrieves a value from the cahe cache for a specific key:
Code Block |
|
from("direct:start")
.setHeader(InfinispanConstants.OPERATION, constant(InfinispanConstants.GET))
.setHeader(InfinispanConstants.KEY, constant("123"))
.to("infinispan://localhost?cacheContainer=#cacheContainer");
|
For more information, see these resources...
Include Page |
|