Forums Register Login

Testing RMI from Different m/c

+Pie Number of slices to send: Send
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 ....
+Pie Number of slices to send: Send
 


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.
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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
Power corrupts. Absolute power xxxxxxxxxxxxxxxx is kinda neat.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 570 times.
Similar Threads
I am getting ClassNotFoundException for stub file
HELP: Muilt-Threaded Server
How to create an EJB Client in Weblogic 6.1 ?
codebase problem
How class will be loaded in the server in RMI?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:39:19.