Question on lazy activation

I keep reading that lazy activation is I qoute "once an activatable object is requested only it's activated". But what happens after the Initial request... is it Deactivated?Srimantha
[205 byte] By [srimantha] at [2007-9-26 19:52:27]
# 1
That is up to the Object, not the activation system. If it wants to deactivate it should unexport itself. The next time it is needed the activation framework should reactivate it.
daney at 2007-7-3 13:08:54 > top of Java-index,Core,Core APIs...
# 2
Thanks Daney, OK... how would you unexport the Object?.Does the JVM unexport the object on it's own just like in Garbage collection?
srimantha at 2007-7-3 13:08:54 > top of Java-index,Core,Core APIs...
# 3
I recommend that you read the Activation API documentation. It is explained there.
daney at 2007-7-3 13:08:54 > top of Java-index,Core,Core APIs...
# 4

About your suggestion of unexporting the object..This would then render the object incapable of accepting any future rmi calls unless you export the object again.

What I want to know specifically is not to unexport but to stop it running after initial activation due to the first rmi method call.....

srimantha at 2007-7-3 13:08:54 > top of Java-index,Core,Core APIs...
# 5
I need some help here !!!
srimantha at 2007-7-3 13:08:54 > top of Java-index,Core,Core APIs...
# 6

use the activatable.inactive() method, this will export the object if its not currently in use. And it will reactivate if there is another call for it after this.

I suggest putting this in a thread as the above will not deactivate it if it is in use.

see http://java.sun.com/j2se/1.3/docs/api/java/rmi/activation/Activatable.html for more info.

KieranOM at 2007-7-3 13:08:54 > top of Java-index,Core,Core APIs...
# 7
thanks for the reply...
srimantha at 2007-7-3 13:08:54 > top of Java-index,Core,Core APIs...