0 Replies Latest reply on Jul 16, 2018 7:55 AM by jaga244

    why dcm.getAddress() function returns "null value" if i invoke that function after creating DefaultCacheManager object??

    jaga244

      Dear sir,

      i am using following code to initialize DefaultCacheManager class

         DefaultCacheManager dcm= new DefaultCacheManager("Config.xml");

         Address localNodeAddress =dcm.getAddress() ; //return null

       

      but,if initialize all caches and starting listeners for deployments ,I can get address this time

       

      DefaultCacheManager dcm= new DefaultCacheManager("Config.xml");

        AdvancedCache cache1=dcm.getCache("cache1").getAdvancedCache() ;

      .....

      .....

      AdvancedCache cache50=dcm.getCache("cache50").getAdvancedCache() ;

       

        Address localNodeAddress =dcm.getAddress() ;//can get value

       

      is there any delay needed or something wrong in the configuration??