Hi,
I will update the problem I'm facing here. Any help very much appreciated.
Firstly I am running both client and server on same machine, and using port 1099.
Here is code I use to register the HotelReservationImpl object:
and here is code I use to look up object:
Using the following code to resolve the hostname to ip address and storing as
string:
I presume this is ok.
So therefore the System.out.println, when I try and look up object results in;
The system.out.println is printing “The host name is localhost/127.0.0.1 the port number is 1099”
I presume this is ok.
But I'm getting a bound exception, clearly "Naming.lookup" isn't working.
"HotelReservator not bound: null"
I thought It might be the fact I haven't generated the HotelReservationImpl stub but I have, maybe it can't find it, using eclipse by the way. I know it should automatically but I did again just in case.
I wonder could it be an issue with the way the database is stored in properties file, I'm using windows:
I think this is ok, entry is saved when server starts as DatabaseLocated=D\:\\eclipseProjects\\MarksProjects\\db-1x2.db
Localhost is 127.0.0.1. I have also included the server images before and after it starting.
Any help must appreciated.