Hi Ranchers,
i feel very very uncomfortable to make a lookup
by hardcoding the server name in the client. i know this the way how the RMI clients are coded , always......
currently the client provides the
1.port,
2.host name and
3.database file
is it not true, if the port and host name are given , then it should given me "whatever" is hanging there. ok, the reason may be more than one implementation can be hanging in the port, as it is virtual. i don't, don't like the idea of changing the client code just because the server is bound by a different name.
coming to the point,
would it be a better idea to bind the server using the name of the interface ot implements like ConnectionFactory so that i can plug-in any implementaion and my client is living happily ever after....
but i have seen the same issue, in all Client Server systems, say in Oracle client, even though the port and server or specified i need to give the instance name
please guide me with yout thoughts!