Thanks for replying PRasad, I understand your approach but, I still don't get /when/ I should group all events for the same transaction. In my tests I get onSessionStart and onSessionEnd for each cache (both sharing the same cix). I would love to have a post commit hook because at that point I'm sure that I have collected all the events. (In this example I have A and B caches but, in reality could have multiple of them).
Example implementing CacheStoreSessionListener to log events: em.getTransaction().begin(); A a = new A(); a.setData(10); em.persist(a); b b = new b(); b.setIntData(20); em.persist(b); em.getTransaction().commit(); Triggered events: OnSessionStart cacheName:a_entity xid:e1fceee9461-00000000-0888-5e7a-0000-000000000001 OnSessionStart cacheName:b_entity xid:e1fceee9461-00000000-0888-5e7a-0000-000000000001 OnSessionEnd cacheName:a_entity xid:e1fceee9461-00000000-0888-5e7a-0000-000000000001 commit:true OnSessionEnd cacheName:b_entity xid:e1fceee9461-00000000-0888-5e7a-0000-000000000001 commit:true Is there a way of getting only one onSessionEnd event? or getting an event associated with the transaction? Thanks! -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/