DistributedSystem.connect is deprecated as of GemFire 6.5. CacheFactory.create and ClientCacheFactory.create are the recommended API's to create peer and client Cache instances, respectively. These create methods will detect if there is an existing Cache/DistributedSystem instance, and return it (as long as it is compatible with the configured properties passed to the factory), so you don't have to worry if a Cache or DistributedSystem already exists.
↧