> I want to implement rmi and get this error
>
[quoted text clipped - 5 lines]
> void getEnToonData() throws java.rmi.RemoteException
> {
void getEnToonData() {
try {
} catch (java.rmi.RemoteException r) {
// Do something.
}
> }
>
[quoted text clipped - 9 lines]
>
> How can i solve this?
Catch it within the method.
--Mike Amling
Daniel - 18 Jun 2005 10:46 GMT
Thanks a lot,
Now it works but i got something strange, I have \running server .the Client
starts but not like its suppose to
in my implementation file to bind the rmiserver with i have
a start method, so that PatientControl will be initialized
public void start() throws java.rmi.RemoteException
{
String titel = "SAPA versie 3.6.3 1 juli 2004";
PatientControl app3 = new PatientControl(titel);
}
On the PatientInterface i want to intitialize the start() method
import java.rmi.*;
public interface PatientInterface extends Remote
{
public void start() throws RemoteException;
}
The PatientClient will initialize start from within the PatientInterface
PatientInterface patient = null;
try
{
System.setSecurityManager(new RMISecurityManager());
patient =
(PatientInterface)Naming.lookup("rmi://localhost/PatientServer");
//String titel = "SAPA versie 3.6.3 1 juli 2004";
// PatientControl app3 = new PatientControl(titel);
patient.getPatientNummer();
}
catch( Exception e1)
{
e1.printStackTrace();
}
Thanks
Daniel
>> I want to implement rmi and get this error
>>
[quoted text clipped - 30 lines]
>
> --Mike Amling