1 8 9 package mx4j.examples.mbeans.rmi; 10 11 import javax.naming.InitialContext ; 12 13 16 public class Client 17 { 18 public static void main(String [] args) throws Exception  19 { 20 InitialContext ctx = new InitialContext (); 21 MyRemoteService service = (MyRemoteService)ctx.lookup(MyRemoteService.JNDI_NAME); 22 23 service.sayHello("Simon"); 24 } 25 } 26 | Popular Tags |