[
https://issues.apache.org/jira/browse/CAMEL-15820?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zineb BENDHIBA updated CAMEL-15820:
-----------------------------------
Summary: Hazelcast : improve search or create HazelcastInstance (was:
Hazelcast : few changes to compile native camel-quarkus extension)
> Hazelcast : improve search or create HazelcastInstance
> ------------------------------------------------------
>
> Key: CAMEL-15820
> URL: https://issues.apache.org/jira/browse/CAMEL-15820
> Project: Camel
> Issue Type: Improvement
> Reporter: Zineb BENDHIBA
> Assignee: Zineb BENDHIBA
> Priority: Minor
>
> Improve some code in the component, to compile in native mode for
> camel-quarkus.
> Note that on Quarkus, the mode used is Client.
> The creation of instance is managed by Hazelcast Quarkus Client extension,
> depending on configuration in application.properties and Hazelcast xml file.
> The code to change is :
> * The 2 methods *getOrCreateHzInstance* and *getOrCreateHzClientInstance* in
> the class *HazelcastDefaultComponent*. These 2 methods use reflection and are
> not relevant for camel-quarkus. The getOrCreateHzInstance won't compile for
> camel-quarkus even if we make it reflection free. Move those 2 methods from
> the abstract class, to enable substitution.
> * The *HazelcastUtil*, must use *ClientConfig* and *HazelcastClient* to
> create new instance instead of *Config* and *Hazelcast*
> * Problem of native compilation when injecting DefaultConsumer in classes
> implementing EntryListener, ItemListener, MapEntryListener, MessageListener.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)