I am trying to extend IgniteConfiguration class and try to enhance its
properties as I needed them for some custom checks. I have created config
like below and started using Ignition.start(<config url>)

But when I call GridKernalContext.config() I am not getting
MyCustomIgniteConfiguration instance. I am still getting IgniteConfiguration
reference.

<bean id="ignite.cfg2" class="com.xyz.MyCustomIgniteConfiguration">
        <property name="clientMode" value="true" />
        <property name="igniteInstanceName" value="xyz" />

<property name="customProperty" value="customValue"/>
---
</bean>

This is happening because IgnitionEx has below code in
initializeConfiguration() method. So even if I extend this configuration it
is creating new instance and using that. 

Question is : Is there any reason why it is not honoring what client provide
in config xml ? Seems like a bug to me.

 private IgniteConfiguration initializeConfiguration(IgniteConfiguration
cfg) throws IgniteCheckedException {
            IgniteConfiguration myCfg = new IgniteConfiguration(cfg);



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to