I don't really understand what you are trying to achieve, so if can explain that
better, can help with how to do it (i.e. stop future clients from establishing lease
sessions, clean up current server side lease sessions, etc.).
Currently the only way to disable leasing from the server side (meaning will tell any
future clients doing initial lease query that server leasing is disabled AND clean up any
current lease sessions in progress on the server side) is to remove all
ConnectionListeners on the server side. Setting the lease period to negative value after
lease management has been enabled, does not have any impact other then if remove all
ConnectionListeners and then add a new ConnectionListener, leasing will NOT be enabled
(since the lease period is negative). Admittedly, this is not well documented within
remoting guide (I will update the doc).
The change for JBREM-602 does prevent future clients doing a lease query from starting a
lease session, but does not clean up an current lease sessions in progress.
Should also mention that there is currently nothing within the code to prevent clients
from sending lease ping once leasing has been disabled on the server side. They will just
continue to send lease ping, which will be thrown away on the server side.
So what I need to understand is exactly what it you need (requirements) and will make it
happen.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973357#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...