1 8 package mx4j.examples.mbeans.iiop; 9 10 import javax.naming.InitialContext ; 11 import javax.rmi.PortableRemoteObject ; 12 13 19 public class IIOPClient 20 { 21 public static void main(String [] args) throws Exception  22 { 23 InitialContext ctx = new InitialContext (); 24 Hello remoteInterface = (Hello)PortableRemoteObject.narrow(ctx.lookup(Hello.IIOP_JNDI_NAME), Hello.class); 25 remoteInterface.sayHello("from the MX4J Team"); 26 } 27 } 28 | Popular Tags |