I have a grails project and I want to configure Hazelcast in it. But I am not been able to do it. I have downloaded the hazelcast and added to lib folder. Then I tried to initialize in resource file
hazelcastConfigurer(MethodInvokingFactoryBean){
targetClass = "com.hazelcast.core.Hazelcast"
targetMethod = "init"
Config hazelcastConfig = new Config("hazelcast.xml")
arguments = hazelcastConfig
}
It just doesnot compile and throws error
[2014-06-04 22:08:25,293] - context.GrailsContextLoader Error initializing the a
pplication: Error creating bean with name 'hazelcastConfigurer': Invocation of i
nit method failed; nested exception is java.lang.NoSuchMethodException: com.haze
lcast.core.Hazelcast.init(com.hazelcast.config.Config)
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'hazelcastConfigurer': Invocation of init method failed; nested exception
is java.lang.NoSuchMethodException: com.hazelcast.core.Hazelcast.init(com.hazel
cast.config.Config)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.
java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NoSuchMethodException: com.hazelcast.core.Hazelcast.init(co
m.hazelcast.config.Config)
at java.lang.Class.getMethod(Class.java:1624)
... 5 more
Is there any blog or site that helps me to configure in grails project?