in my early design, there are one object named DBConnection, exposed with rebind method.
this obj encapsulate de data class which accessing the database directly to satisfy the clients requests..
if all clients accessing data class for the same object ..
dbInterface = (RemoteClient)Naming.lookup("rmi://"+url+"/dbConn");
dbInterface2 = (RemoteClient)Naming.lookup("rmi://"+url+"/dbConn");
if (dbInterface == dbInterface2) { System.out.println("equals"); }
the objects no have to be the same?
why equals not printed?
thanks all again