Originally posted by Amish Patel:
You are right, however are you saying that the ConnectionFactory does not extends UnicastRemoteObject?
No, I'm not trying to say that. What am I trying to say? That's funny, people ask me that question all the time
The factory is a server-side, remote, RMI-callable object. The most convenient way to do this is to simply extend UnicastRemoteObject.
This factory will only ever produce remote Connections.
In addition, you have a different client-side factory method (or factory class, if you wish) that you call and which returns the right flavour of connection for you -- either a Data object instantiated locally, or a remote Connection object produced by your remote ConnectionFactory.
- Peter
[ January 24, 2003: Message edited by: Peter den Haan ]