blob: 15eeabc4a472f235972e4518eb87bd2e5a57706d [file] [log] [blame]
// Do not edit directly!
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
[id="extensions-infinispan"]
= Infinispan
:page-aliases: extensions/infinispan.adoc
:linkattrs:
:cq-artifact-id: camel-quarkus-infinispan
:cq-native-supported: true
:cq-status: Stable
:cq-status-deprecation: Stable
:cq-description: Read and write from/to Infinispan distributed key/value store and data grid.
:cq-deprecated: false
:cq-jvm-since: 0.0.1
:cq-native-since: 0.0.1
ifeval::[{doc-show-badges} == true]
[.badges]
[.badge-key]##JVM since##[.badge-supported]##0.0.1## [.badge-key]##Native since##[.badge-supported]##0.0.1##
endif::[]
Read and write from/to Infinispan distributed key/value store and data grid.
[id="extensions-infinispan-whats-inside"]
== What's inside
* xref:{cq-camel-components}::infinispan-component.adoc[Infinispan component], URI syntax: `infinispan:cacheName`
Please refer to the above link for usage and configuration details.
[id="extensions-infinispan-maven-coordinates"]
== Maven coordinates
https://{link-quarkus-code-generator}/?extension-search=camel-quarkus-infinispan[Create a new project with this extension on {link-quarkus-code-generator}, window="_blank"]
Or add the coordinates to your existing project:
[source,xml]
----
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-infinispan</artifactId>
</dependency>
----
ifeval::[{doc-show-user-guide-link} == true]
Check the xref:user-guide/index.adoc[User guide] for more information about writing Camel Quarkus applications.
endif::[]
[id="extensions-infinispan-additional-camel-quarkus-configuration"]
== Additional Camel Quarkus configuration
[id="extensions-infinispan-configuration-infinispan-client-configuration"]
=== Infinispan Client Configuration
You can either configure the Infinispan client via the relevant Camel Infinispan component & endpoint options, or you
may use the https://quarkus.io/guides/infinispan-client#configuration-reference[Quarkus Infinispan extension configuration properties].
Note that if you choose to use Quarkus Infinispan configuration properties, you *must* add an injection point for the `RemoteCacheManager` in order for it to be discoverable by the Camel Infinispan component. For example:
[source,java]
----
public class Routes extends RouteBuilder {
// Injects the default unnamed RemoteCacheManager
@Inject
RemoteCacheManager cacheManager;
// If configured, injects an optional named RemoteCacheManager
@Inject
@InfinispanClientName("myNamedClient")
RemoteCacheManager namedCacheManager;
@Override
public void configure() {
// Route configuration here...
}
}
----
[id="extensions-infinispan-configuration-camel-infinispan-infinispanremoteaggregationrepository-in-native-mode"]
=== Camel Infinispan `InfinispanRemoteAggregationRepository` in native mode
If you chose to use the `InfinispanRemoteAggregationRepository` in native mode, then you must xref:extensions/core.adoc#quarkus.camel.native.reflection.serialization-enabled[enable native serialization support].