KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > examples > mbeans > rmi > MyRemoteService


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 JavaDoc;
12 import java.rmi.RemoteException JavaDoc;
13
14 /**
15  * The RMI Remote interface of the service.
16  *
17  * @version $Revision: 1.1 $
18  */

19 public interface MyRemoteService extends Remote JavaDoc
20 {
21    public static final String JavaDoc JNDI_NAME = "rmi://localhost:1099/my-service";
22
23    public void sayHello(String JavaDoc name) throws RemoteException JavaDoc;
24 }
25
Popular Tags