Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Notify container does not process existing entities on the space.

Hi,

This is a new bie question. We are using XAP 10 to build an app.

I have a basic notify container setup that waits for some objects (with processed = false) to be written to the space. During testing - I noticed that if the objects were written to the space before the notify container is initialized , the listener code did not get called. However, after the polling container was started - when the same objects were written to space , the listener code does get invoked as expected.

Is there a way I can force the notify container to process all the entities that match its event template (rather than just those that are written after notify container initialization).

I have a simple test that shows this. Would be happy to post that if required.

Thanks Ashish

asked 2014-11-24 11:45:25 -0500

ashish.ujwal gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

Hi,

By design you can't force the Notify Container to process entities which are already in the space (unless you used Masking Notifications - take/all which I believe is not your case) http://docs.gigaspaces.com/xap97/noti... The Notify Container start working after its initialization. What you can do now is read the entities and write them again to the space.

Yuval

answered 2014-11-26 02:09:01 -0500

Yuval gravatar image
edit flag offensive delete link more

Comments

The other option is to generate the notify container before any data is written.

If it's embedded with the space that will be the default behavior.

shay hassidim gravatar imageshay hassidim ( 2014-11-26 04:28:00 -0500 )edit

Thanks Yuval and Shay. I was out so sorry about the delayed response. Would take the alternative of rewriting the entities to space.

ashish.ujwal gravatar imageashish.ujwal ( 2014-12-11 02:58:47 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-11-24 11:45:25 -0500

Seen: 227 times

Last updated: Nov 26 '14