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

Ask Your Question

Notification on specific objects but they are not in the space.Whats wrong?


If a space-listener gets notified (registered with a specific object-template) and then I do a readMultiple/takeMultipe/read/take there is no object !?!? I made sure that it is not taken somewhere else and that the lease is set forever. No, idea about that strange behaviour. What happend to the objects ?

Cheers, Rob.

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=3415]{quote}

asked 2010-05-02 05:28:33 -0600

wir33658 gravatar image

updated 2013-08-08 09:52:00 -0600

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

Make sure the template you use is correct. If you got a notification the object should be within the space, unless some other client already consumed it.

answered 2010-05-03 07:07:16 -0600

shay hassidim gravatar image
edit flag offensive delete link more



well, my class (called Operation) where I try to get properly informed by a template-object is very simple. It has two getter/setters (one is a String, the other is Boolean - the String is the id). The template-object is created so that all is null. In this case, I thought, I would get informed by any object of type Operation. Doesn't matter what data is set, since the template-objects getter/setters are all null. And null is like the wildcard for anything. Right ?

So, in this case I get notified, but doing a read with the same template does not give me anything back.

Just when I set in the template-object the Boolean (true/false - doesn't matter). I get also a notification AND by a read the right object(s). But thats, not what I want. I do not want to set the Boolean.

And yes, I made sure for this test, that there is no other consumer, already consuming the objects.

Cheers, Rob.

wir33658 gravatar image wir33658  ( 2010-05-05 03:16:44 -0600 )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


Asked: 2010-05-02 05:28:33 -0600

Seen: 34 times

Last updated: May 03 '10