S
Sachin
I wrote a RMI server class to access a MS Access database with the
intenetion of providing concurrency access for the database for remote
clients.
Remote interface has 3 methods addEmployee(Employee e),
deleteEmployee(String id), and viewAll()
In the RMI Server class i implemented the above 3 remote ingterface
methods, use try cathc clauses and in the catch block caught Exception
object throw as a RemoteException. Inside the default constructor i
create the connection for the Access database (using a system DSN)
and initialized 2 java.sql.PreparedStatement member variables for used
in addEmployee() and deleteEmployee() methods and
java.sql.Satatement memeber variable to be used in viewAll()
method.
In the main() method of the server class i create a server object and
get the stub and bind it to the local registry.
In the RemotClient class (a Console Application) i lookup the stub in
the localhost.
The problem is when invoking those databae access methods a
SQLException "Invalid database handler" occurs.
Please tell me why is this happens. Is this of Access database? (I
don't have a concurrently accesed database server on my computer).
Help me.
intenetion of providing concurrency access for the database for remote
clients.
Remote interface has 3 methods addEmployee(Employee e),
deleteEmployee(String id), and viewAll()
In the RMI Server class i implemented the above 3 remote ingterface
methods, use try cathc clauses and in the catch block caught Exception
object throw as a RemoteException. Inside the default constructor i
create the connection for the Access database (using a system DSN)
and initialized 2 java.sql.PreparedStatement member variables for used
in addEmployee() and deleteEmployee() methods and
java.sql.Satatement memeber variable to be used in viewAll()
method.
In the main() method of the server class i create a server object and
get the stub and bind it to the local registry.
In the RemotClient class (a Console Application) i lookup the stub in
the localhost.
The problem is when invoking those databae access methods a
SQLException "Invalid database handler" occurs.
Please tell me why is this happens. Is this of Access database? (I
don't have a concurrently accesed database server on my computer).
Help me.