Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / June 2005

Tip: Looking for answers? Try searching our database.

remote object access

Thread view: 
Daniel - 19 Jun 2005 00:25 GMT
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
sanjay manohar - 20 Jun 2005 14:32 GMT
What you have pasted is not a class, or an object, but a method. Which
class is this method in? It looks like it is in client form interface
class.
The line beginning with 'private' defines the method, and the
subsequent line creates a local Patient object using the data on the
form. It sounds like you want to alter this code to create a remote
Patient object.

if you need more help your best bet would be to post summarised, short
but complete code - i.e. the whole structure of each file, with
skeleton methods.
Andrew Thompson - 20 Jun 2005 14:42 GMT
(Daniel wrote)
I have this object

private Patient maakDezePatient() throws java.rmi.RemoteException
  {

> What you have pasted is not a class, or an object, but a method.

While 'maakDezePatient()' is a method, it seems that Daniel
was refering to an instance of (object of type) 'Patient'.

However..

> if you need more help your best bet would be to post summarised, short
> but complete code - i.e. the whole structure of each file, with
> skeleton methods.

..that is an excellent idea.  For my own reasons for
creating such an example, and some tips..
<http://www.physci.org/codes/sscce.jsp>

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.