• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Testing RMI from Different m/c

 
Varaku Venkata
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am facing some problems when i am testing the application from different machine.
When i am testing the application from the same machine in remote mode it is working fine but in different machine it is giving problems.
Pls help in solving following questions ?
1. what are files required in the client side other than stubs and client files .
i.e do we need to place Data.class, FieldInfo.class,DataBaseException.class ..etc in the client side...??
2.I suppose that the client gets the references to the remote object using the codebase property mentioned in the server side.
I am using following comand for codebase
-Djava.rmi.server.codebase = D:\MyDev\scjd\starting\suncertify\db/
In the above case all the class files are in db directory.
Is it correct ??

Any suggestions,references regarding codebase or extra command line arguments for connecting from different machine would be helpful to me ....
 
John Smith
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using following comand for codebase
-Djava.rmi.server.codebase = D:\MyDev\scjd\starting\suncertify\db/

Do not use codebase, it is for dynamic downloading, which you are not using since you packaged the stubs with the client.
Eugene.
 
Varaku Venkata
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Eugene for the reply,
I have tested without using codebase also but from the different machine my application is not working. Only when I am keeping all the files except RMI Server class, it is working. or else if i remove db.db or any other class (Data.class)from the client machine it is giving ClassNotFoundException...
any ideas ???
Venkat
 
Ramesh kumaar
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Venkat,
Keep all the suncertify.db.* files in ur client package, ur Interface which has all the public method of DataClass, RemoteInterface.
Now do a test.
-rameshkumar
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic