KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > javax > rmi > PortableRemoteObject

javax.rmi
Class PortableRemoteObject

java.lang.Object
  extended by javax.rmi.PortableRemoteObject
See Also:
Top Examples, Source Code

public static void connect(Remote target,
                           Remote source)
                    throws RemoteException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void exportObject(Remote obj)
                         throws RemoteException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Object narrow(Object narrowFrom,
                            Class narrowTo)
                     throws ClassCastException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[175]Get a reference to the Bean Home interface
By amamhoud { at } sympatico { dot } ca on 2003/09/16 23:22:33  Rate
InitialContext jndiContext = new InitialContext (  ) ; 
          System.out.println ( "Got context" ) ; 
           
          // Get a reference to the Interest Bean 
          Object ref = jndiContext.lookup ( "rmi://localhost:1099" ) ; 
          System.out.println ( "Got reference" ) ; 
          System.out.println ( "ref: " + ref.toString (  )  ) ; 
           
          // Get a reference from this to the Bean's Home interface 
          FirstHome home =  ( FirstHome )   
          PortableRemoteObject.narrow ( ref, FirstHome.class ) ;


protected PortableRemoteObject()
                        throws RemoteException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Remote toStub(Remote obj)
                     throws NoSuchObjectException
See Also:
exportObject(java.rmi.Remote)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static void unexportObject(Remote obj)
                           throws NoSuchObjectException
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags