10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * @bug 4295885 6824141 26 * @summary rmid should be startable from inetd 27 * @author Ann Wollrath 28 * 29 * @library ../../testlibrary 30 * @build TestLibrary RMID ActivationLibrary 31 * @run main/othervm/timeout=240 RmidViaInheritedChannel 32 */ 33 34 import java.io.IOException; 35 import java.net.InetAddress; 36 import java.net.InetSocketAddress; 37 import java.net.ServerSocket; 38 import java.net.ProtocolFamily; 39 import java.nio.channels.*; 40 import java.nio.channels.spi.*; 41 import java.rmi.Remote; 42 import java.rmi.NotBoundException; 43 import java.rmi.activation.ActivationGroup; 44 import java.rmi.activation.ActivationSystem; 45 import java.rmi.registry.LocateRegistry; 46 import java.rmi.registry.Registry; 47 import java.rmi.server.UnicastRemoteObject; 48 49 public class RmidViaInheritedChannel implements Callback { | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 24 /* @test 25 * @bug 4295885 6824141 26 * @summary rmid should be startable from inetd 27 * @author Ann Wollrath 28 * 29 * @library ../../testlibrary 30 * @modules java.base/sun.nio.ch 31 * java.rmi/sun.rmi.registry 32 * java.rmi/sun.rmi.server 33 * java.rmi/sun.rmi.transport 34 * java.rmi/sun.rmi.transport.tcp 35 * @build TestLibrary RMID ActivationLibrary 36 * @run main/othervm/timeout=240 RmidViaInheritedChannel 37 */ 38 39 import java.io.IOException; 40 import java.net.InetAddress; 41 import java.net.InetSocketAddress; 42 import java.net.ServerSocket; 43 import java.net.ProtocolFamily; 44 import java.nio.channels.*; 45 import java.nio.channels.spi.*; 46 import java.rmi.Remote; 47 import java.rmi.NotBoundException; 48 import java.rmi.activation.ActivationGroup; 49 import java.rmi.activation.ActivationSystem; 50 import java.rmi.registry.LocateRegistry; 51 import java.rmi.registry.Registry; 52 import java.rmi.server.UnicastRemoteObject; 53 54 public class RmidViaInheritedChannel implements Callback { |