Zineb BENDHIBA created CAMEL-15820:
--------------------------------------
Summary: Hazelcast : few changes to compile native camel-quarkus
extension
Key: CAMEL-15820
URL: https://issues.apache.org/jira/browse/CAMEL-15820
Project: Camel
Issue Type: Improvement
Reporter: Zineb BENDHIBA
Assignee: Zineb BENDHIBA
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*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)