D
Daniel
Hello all,
I have this object
private Patient maakDezePatient() throws java.rmi.RemoteException
{
return new Patient(Integer.parseInt(sleutelVeld.getText()),
Integer.parseInt(sofiNummerVeld.getText()),
verzekeringsMaVeld.getText(),
Integer.parseInt(polisNummerVeld.getText()),
naamVeld.getText(),
adresVeld.getText(),
postcodeVeld.getText(), woonplaatsVeld.getText(),
gebDatumVeld.getText());
}
Im still a beginner, This object is on the client pc, The Patient Class is
on the server. I have a PatientInterface. I know my classes are
serializable. It it have to be when i want to pass whole object through the
line. I cannot find any examples on how to define this in my Interface.
And can someone please tell me what does this object actually? Is it that
the first line starting with private calls a reference to the Patient class?
and then returns the constands given by the Patient class? Im really lost,
becouse i understand how to use the Interface to define methods, where the
server class implents the Interface. But in this case i dont know how to
change this merhod to do so becouse it always gives me an error that the
Class isnt available on the client, its true, so thats why i think i the
best way is to call a remote object with serializability.
Thanks a lot for all the help.
Danny
I have this object
private Patient maakDezePatient() throws java.rmi.RemoteException
{
return new Patient(Integer.parseInt(sleutelVeld.getText()),
Integer.parseInt(sofiNummerVeld.getText()),
verzekeringsMaVeld.getText(),
Integer.parseInt(polisNummerVeld.getText()),
naamVeld.getText(),
adresVeld.getText(),
postcodeVeld.getText(), woonplaatsVeld.getText(),
gebDatumVeld.getText());
}
Im still a beginner, This object is on the client pc, The Patient Class is
on the server. I have a PatientInterface. I know my classes are
serializable. It it have to be when i want to pass whole object through the
line. I cannot find any examples on how to define this in my Interface.
And can someone please tell me what does this object actually? Is it that
the first line starting with private calls a reference to the Patient class?
and then returns the constands given by the Patient class? Im really lost,
becouse i understand how to use the Interface to define methods, where the
server class implents the Interface. But in this case i dont know how to
change this merhod to do so becouse it always gives me an error that the
Class isnt available on the client, its true, so thats why i think i the
best way is to call a remote object with serializability.
Thanks a lot for all the help.
Danny