ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StartCoding <mailsa...@gmail.com>
Subject Re: Can java code look up cache in server without Ignition.start(cfg)
Date Wed, 16 Nov 2016 14:43:28 GMT
Hi Val,

Thank you very much for your quick response.
Could you please verify if the below approach will work or is there a better
way to do it.

1. Declare a static variable igniteVar of type Ignite in my CacheOperations 
class
2. Declare a method getIgniteObject() which will check if igniteVar is not
null else will invoke Ignition.start(cfg) and assign to igniteVar .
3. myGetCache() and puctCache uses getIgniteObject() to get the ignite
object.


Also another doubt was what is the purpose of Ignition.ignite().

Thanks
Saji




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Can-java-code-look-up-cache-in-server-without-Ignition-start-cfg-tp9008p9020.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message