You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Thomas Diesler (Jira)" <ji...@apache.org> on 2020/06/09 12:07:00 UTC
[jira] [Commented] (CAMEL-15167) Clarify use of sysprops for
HazelcastCachingProvider
[ https://issues.apache.org/jira/browse/CAMEL-15167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17129199#comment-17129199 ]
Thomas Diesler commented on CAMEL-15167:
----------------------------------------
If additional hazelcast properties are needed, it would perhaps be sensible that the component provided the necessary defaults and a way to explicitly override those defaults. If additional steps need to be done by the user (i.e. spin up an hazelcast server) that would need to be documented.
> Clarify use of sysprops for HazelcastCachingProvider
> ----------------------------------------------------
>
> Key: CAMEL-15167
> URL: https://issues.apache.org/jira/browse/CAMEL-15167
> Project: Camel
> Issue Type: Task
> Affects Versions: 3.3.0
> Reporter: Thomas Diesler
> Priority: Major
> Fix For: 3.4.0
>
>
> According to [this commit|https://github.com/apache/camel/commit/06c48d08#diff-f51701c69af2367205f70cc85b4eea7bR120] it is necessary to set some system properties to get the HazelcastCachingProvider to work.
> {code}
> <systemProperties>
> <property>
> <name>hazelcast.named.jcache.instance</name>
> <value>false</value>
> </property>
> <property>
> <name>hazelcast.jcache.provider.type</name>
> <value>server</value>
> </property>
> </systemProperties>
> {code}
> Is this really the propper way to configure this cache provider (i.e. global sysprops instead of component/endpoint props)?
> A required migration is not documented [here|https://camel.apache.org/manual/latest/camel-3x-upgrade-guide-3_3.html]
> A camel route like this does not start any more ...
> {code}
> try (CamelContext camelctx = new DefaultCamelContext()) {
>
> camelctx.addRoutes(new RouteBuilder() {
> public void configure() {
> from("jcache://test-cacheA?cachingProvider=com.hazelcast.cache.HazelcastCachingProvider")
> .to("mock:resultA");
> }
> });
>
> // Just ensure we can start up without any class loading issues
> camelctx.start();
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)