--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.
I have just added methods for Hibernate 3.5.0+, Hazelcast 1.9.3 final build will be compatible both 3.3 and 3.5+ branches.
@mm
Having hibernate instance and other instance in different groups can get you
a clean separation of data -- data which is used solely by hibernate and
data which other business logic components may put and share among
themselves.
However, you will notice that is hibernate and app instance are runinng
within same jvm, your memory constraints are still limited by the same
overall bound.
So, my opinion would be that if you have a clear requirement to maintain a
separate cache cluster for data shared amoung business services which
non-native clients should access, sizing constraints of which should not be
affected by l2 cache regions of hibernate, you may keep a single hzinstance
per jvm.
You may not even need to use any of HZ's spring support for this.
a. keep your config in xml -- may be you have diff config for diff env like
qa, prods etc.
b. create a hz instance using a simple class which takes your config.
c. Use the same instance as constructor-arg to hazelcastcacheregionfactory
d. Inject this cacheregionfactory instance to Hibernate's SessionFactoryBean
e. Use the hzinstance in your app code.
However, there are other ways for this workaround as well, as listed in this
very thread.
my 2 cents
Navjot Singh