I am trying to do something using RMI Activation

Edward Harned

Our company uses the activation framework.

Each RMI method increments a counter of times used in persistent storage. That is -- not a field within the _impl Class.

We have a daemon thread that runs every n-minutes. It looks at each RMI method counter to see whether each counter is greater than the last time the thread ran. If the time is one minute and method X counter is 1000 greater than when last the thread ran, then method X is being used 1000 times per minute. Is this heavy or light? It depends on the application.

When no method counters are greater than the last time the thread ran, then we call inactivate().

If you pointers on using persistent storage, hop on over to developerWorks and read the RMI Server Framework article:

http://www-106.ibm.com/developerworks/java/library/j-rmiframe/

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact