01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package mx4j.examples.mbeans.rmi;
10:
11: import javax.naming.InitialContext;
12:
13: /**
14: * @version $Revision: 1.1 $
15: */
16: public class Client {
17: public static void main(String[] args) throws Exception {
18: InitialContext ctx = new InitialContext();
19: MyRemoteService service = (MyRemoteService) ctx
20: .lookup(MyRemoteService.JNDI_NAME);
21:
22: service.sayHello("Simon");
23: }
24: }
|