Dynamic downloading of Interface class which extends Remote Interface
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anish_George
Posted On:   Sunday, September 7, 2003 10:29 AM

Hai; To execute my client program I have to store the Interface class which extends Remote Interface locally. Is it possible to download that class also dynamically.I am storing allthe classes in http://server:8080/RMI/Classes/ exept the MyClient.class Client Program Skelton class MyClient { static RemInterface remInterfaceObj; remInterfaceObj=(RemInterface)Naming.lookup ("rmi://server/fstRmiObj"); } Here I have to store RemInterface.class also locally along with MyClient.classeven if I had set rmi.server.codebase= http://localhost:8080/RMI/Classes in server    More>>

Hai;

To execute my client program I have to store the Interface class which extends Remote Interface locally.

Is it possible to download that class also dynamically.I am storing allthe classes in http://server:8080/RMI/Classes/ exept the MyClient.class


Client Program Skelton
class MyClient
{

static RemInterface remInterfaceObj;

remInterfaceObj=(RemInterface)Naming.lookup

("rmi://server/fstRmiObj");
}


Here I have to store RemInterface.class also locally along with MyClient.classeven if I had set rmi.server.codebase= http://localhost:8080/RMI/Classes in server

   <<Less

Re: Dynamic downloading of Interface class which extends Remote Interface

Posted By:   Genady_Beryozkin  
Posted On:   Sunday, September 28, 2003 02:26 AM

I think it is common to distribute the interface class/jar along with the client and the server.

However, you can use the URLClassLoader to download classes from whatever location you wish. I'm not sure whether you need to modify your security settings or not, but you will find that out very soon :)


Genady Beryozkin,

Author of the RMI Plugin for Eclipse

http://www.genady.net/rmi/

About | Sitemap | Contact