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:15 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 all the classes in http://server:8080/RMI/Classes/ exept the MyClient.class   Client Program Skelton class color=#ff0000>MyClient {  static color=#ff0000>RemInterface remInterfaceObj;   remInterfaceObj=(RemInterface)Naming.lookup                     ("rmi://server/fstRmiObj"); }       Here I have to st   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 all
the classes
in http://server:8080/RMI/Classes/
exept the MyClient.class

 

Client Program
Skelton
class
color=#ff0000>MyClient
{
 static
color=#ff0000>RemInterface
remInterfaceObj; 
 remInterfaceObj=(RemInterface)Naming.lookup
                   
("rmi://server/fstRmiObj");
}

 

    Here I have to store
RemInterface.class also locally along with MyClient.class
even if I had set
-Djava.rmi.server.codebase=
href="http://localhost:8080/RMI/Classes">http://localhost:8080/RMI/Classes

in server
   <<Less

Re: Dynamic downloading of Interface class which extends Remote Interface

Posted By:   lhp06_lhp06  
Posted On:   Friday, November 7, 2003 12:43 AM

Since your client side is Applet, you can put all classes in server side. But you should specify codebase in html referring to the place where the Applet and your remote interface reside.
About | Sitemap | Contact