1 /* 2 * Copyright (C) The MX4J Contributors. 3 * All rights reserved. 4 * 5 * This software is distributed under the terms of the MX4J License version 1.0. 6 * See the terms of the MX4J License in the documentation provided with this software. 7 */ 8 9 package mx4j.examples.mbeans.rmi; 10 11 import java.rmi.Remote; 12 import java.rmi.RemoteException; 13 14 /** 15 * The RMI Remote interface of the service. 16 * 17 * @version $Revision: 1.1 $ 18 */ 19 public interface MyRemoteService extends Remote 20 { 21 public static final String JNDI_NAME = "rmi://localhost:1099/my-service"; 22 23 public void sayHello(String name) throws RemoteException; 24 } 25