• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

RMI - strange lease signals

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't have any real trouble (apparently) but I am curious:

Why, after settings my remote object reference in my client to null, does my client and server continue to communicate actively?
In fact, it only stops when the remote object will be effectively clean on the server.

I am running the client and server on the same machine and I am using Eclipse and jre1.5.0_09 as environment.

My System.properties for the RMI server are:
System.setProperty("java.rmi.dgc.leaseValue", "10000");
System.setProperty("java.rmi.server.logCalls", "true");

The remote object is a dynamic proxy. (no rmic)

The log on the server side:



The reference to the remote object is set to null just after dummyMethod() call.
All other rmi references have been set to null long time ago. (Registry and Factory)
rmi.unreferenced.MyRemoteInterface is my define interface for RMI.
rmi.unreferenced.MyRemoteObject is the UnicastRemoteObject implementing it.
The last message is the result of the call to unreferenced() on the remote object.

Why so much activity on the log between the dummyMethod() call and the unreferenced() call ? (I can understand one but four )


ps: my aim is to better understand RMI for my SCJD implementation not to complain about anything. I will put my code latter if it is not a known behavior
[ October 28, 2006: Message edited by: Eric Janssens ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic