how do i make hazelcast to store in my database using MapStore implementation
<p>I implemented MapStore and configured hazelcast so that it would know that when calling map.put it has to call in background .store from my implementation, at least that`s what i read.</p>

<p>If i use my implementation directly it stores what i what but if i call map.put it doesn't.
Can someone tell me why it doesn't or if i`m doing something wrong?</p>

<p>here is my MapStore implementation:</p>

<pre><code>public class MyMapStore implements MapStore&lt;String, Object&gt; {


private Session session = HibernateUtil.openSession();


@Override
public Object load(String key) {
            // TODO Auto-generated method stub
            return null;
}

@Override
public Map&lt;String, Object&gt; loadAll(Collection&lt;String&gt; keys) {
    // TODO Auto-generated method stub
    return null;
}

@Override
public Set&lt;String&gt; loadAllKeys() {
    // TODO Auto-generated method stub
    return null;
}

@Override
public void store(String key, Object value) {

    Transaction tx = session.beginTransaction();
    session.save((MyObject)value);
    tx.commit();
}

@Override
public void storeAll(Map&lt;String, Object&gt; map) {
    // TODO Auto-generated method stub

}

@Override
public void delete(String key) {
            // TODO Auto-generated method stub
}

@Override
public void deleteAll(Collection&lt;String&gt; keys) {
    // TODO Auto-generated method stub

}
}
</code></pre>

<p>and here is how i configure hazelcast:</p>

<pre><code>h.getConfig().getMapConfig("default").setMapStoreConfig(
    new MapStoreConfig().setEnabled(true).setClassName(
    MyMapStore.class.getName()).setWriteDelaySeconds(0));
</code></pre>

<p>if i print the hazelcast configuration it tells that all i setted is there so i don't know what`s wrong.
P.S. i'm using hazalcast 2.2</p>
