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

Ask Your Question

Listening for Lease Expirations - The Spring Way?

Is there a means to register for Lease expiration events using the Spring configuration?

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

asked 2008-08-12 20:54:31 -0500

oravecz's avatar

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

jaissefsfex's avatar
edit retag flag offensive close merge delete

4 Answers

Sort by ยป oldest newest most voted

I don't understand why you need to extend RemoteEventListener to get notifications for lease expiration. There is no need to do this.
Make sure you place your space domain classes within a jar under a folder named shared-lib under the PU folder.
This will avoid the UnusableEntryException you are getting.

answered 2008-08-13 17:02:02 -0500

shay hassidim's avatar
edit flag offensive delete link more

I'm not at the point of packaging a PU. I'm just running the application from within my IDE (using org.openspaces.pu.sla.SLA), so I'm not using shared-lib yet. I haven't run into any problems as long as my VMs are pointing at the same entries.

So, how do I listen for lease expirations of a particular POJO type unless I write a class that implements RemoteEventListener? It works just fine and is documented here . Is there a different way to do it?

answered 2008-08-13 20:04:17 -0500

oravecz's avatar
edit flag offensive delete link more

It's never good form when your name appears on a majority of the posts and you started the thread. ;-)

Perhaps you are referring to: http://www.gigaspaces.com/wiki/displa...

answered 2008-08-13 21:55:04 -0500

oravecz's avatar
edit flag offensive delete link more


The http://www.gigaspaces.com/wiki/displa... is deprecated. A much simpler way to register for notification would be to use the notify container. see: http://www.gigaspaces.com/wiki/displa...


shay hassidim's avatar shay hassidim  ( 2008-08-14 15:43:57 -0500 )edit

It was pretty trivial to create my own class that extends RemoteEventListener and provide a notification delegate. I bootstrap this class in my Spring configuration.

Now, I just need to figure out why I'm getting the UnusableEntryException ...

answered 2008-08-13 08:34:03 -0500

oravecz's avatar
edit flag offensive delete link more

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: 2008-08-12 20:54:31 -0500

Seen: 140 times

Last updated: Aug 13 '08