Pinned topic Grid is firing 2 transactionEnd event for each insert
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
I have an ObjectGridEventListener configured within my grid, and every time I insert data, I receive 2 transactionEnd events. The second one is always on Partition 0. How do I not fire the second event and what exactly is happening?
Updated on 2012-09-25T20:38:58Z at 2012-09-25T20:38:58Z by wiedela
SystemAdmin 110000D4XK1485 Posts
Re: Grid is firing 2 transactionEnd event for each insert2012-09-13T16:55:25ZThis is the accepted answer. This is the accepted answer.Hello Adam,
May I get some additional info.
Is it only transactionEnd events that are getting received twice? Or do transactionBegin events get called twice as well?
What version of eXtreme Scale are you using?
Partition 0 is the client. Do you maybe have two ObjectGridEventListeners, one on the client and one on the server?
Re: Grid is firing 2 transactionEnd event for each insert2012-09-24T22:50:36ZThis is the accepted answer. This is the accepted answer.
- SystemAdmin 110000D4XK
Sorry for the late reply. We actually had 2 event listeners in our original problem, which was a bookkeeping error on our part. However, we do have another set of weird behavior using listeners again.
We are currently trying to add event listeners programmatically into one of our grids from another grid. The idea is that we have Grid-A which is a simple data cache and Grid-M which is going to store varied metadata objects. When Grid-M starts, we want to make a connection to Grid-A and add multiple listeners for data. We see where the listener is initialized, when data is added to Grid-A, we don't get the transactionEnd event.
Again, I'm assuming this is a simple and/or common problem and we are just missing a step, but we are stuck on it so any help is appreciated.
jhanders 1200009V3S265 Posts
Re: Grid is firing 2 transactionEnd event for each insert2012-09-24T23:27:21ZThis is the accepted answer. This is the accepted answer.
- wiedela 110000P9SD
I hope that helps,
Re: Grid is firing 2 transactionEnd event for each insert2012-09-25T20:38:58ZThis is the accepted answer. This is the accepted answer.
- jhanders 1200009V3S
Yeah, that worked like a charm. Took me about 20 minutes to try what you said with what I had and I got it running.