HelloImpl.java revision 13901:b2a69d66dc65
1147883Sscottl/* 2147883Sscottl * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. 3147883Sscottl * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4147883Sscottl * 5147883Sscottl * This code is free software; you can redistribute it and/or modify it 6147883Sscottl * under the terms of the GNU General Public License version 2 only, as 7147883Sscottl * published by the Free Software Foundation. 8147883Sscottl * 9147883Sscottl * This code is distributed in the hope that it will be useful, but WITHOUT 10147883Sscottl * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11147883Sscottl * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12147883Sscottl * version 2 for more details (a copy is included in the LICENSE file that 13147883Sscottl * accompanied this code). 14147883Sscottl * 15147883Sscottl * You should have received a copy of the GNU General Public License version 16147883Sscottl * 2 along with this work; if not, write to the Free Software Foundation, 17147883Sscottl * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18148679Sgibbs * 19148679Sgibbs * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20148679Sgibbs * or visit www.oracle.com if you need additional information or have any 21147883Sscottl * questions. 22147883Sscottl */ 23147883Sscottl 24147883Sscottlpackage org.example.hello; 25147883Sscottl 26147883Sscottlimport java.rmi.*; 27147883Sscottlimport java.rmi.server.UnicastRemoteObject; 28147883Sscottl 29147883Sscottl/** 30147883Sscottl * This class is used by the StoreRemote test. 31147883Sscottl * It is an implementation of the Hello interface. 32147883Sscottl */ 33147883Sscottl 34159052Smjacobpublic class HelloImpl extends UnicastRemoteObject implements Hello { 35159052Smjacob public HelloImpl() throws RemoteException { 36159052Smjacob } 37159052Smjacob 38159052Smjacob public String sayHello() throws RemoteException { 39159052Smjacob return ("Hello, the time is " + new java.util.Date()); 40159052Smjacob } 41159052Smjacob} 42147883Sscottl