This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I have implemented a ConnectionFactory with a getData Method, which returns a new ConnectionObject. These ConnectionObject implements the unreferenced interface. In the main method of the ConnectionFactory i create a registry and bind the ConnectionFactory there. When the client exits abnormally the unreferenced method from the ConnectionObject is never called. Can you please help me to figure out why this not work.
Are you sure that this is the problem? I thought I read somewhere recently that unreferenced is only called if there are no remote references to the object, and a registry binding counts as one reference.
Hi Alex Could you please elaborate on the ConnectionFactory which you have used in your application? Thanks Ravindra
SCEA, SCBCD, SCWCD, SCJD, SCJP
Joined: Jul 10, 2001
Originally posted by Reid M. Pinchback: Are you sure that this is the problem? I thought I read somewhere recently that unreferenced is only called if there are no remote references to the object, and a registry binding counts as one reference.
You are right about the registry counting as a client, but in this case I'm assuming that only his ConnectionFactory is bound to the registry.