[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: JBMESSAGING-549 - Lease set to -1 causes exception
tom.elrod@jboss.com
do-not-reply at jboss.com
Thu Sep 21 14:19:59 EDT 2006
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#3973357
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973357
More information about the jboss-dev-forums
mailing list