jdk/test/java/rmi/activation/Activatable/restartCrashedService/RestartCrashedService.java
changeset 41751 365b2e7c0d2c
parent 30820 0d4717a011d3
equal deleted inserted replaced
41750:25ee1c2ee27e 41751:365b2e7c0d2c
    30  * @library ../../../testlibrary
    30  * @library ../../../testlibrary
    31  * @modules java.rmi/sun.rmi.registry
    31  * @modules java.rmi/sun.rmi.registry
    32  *          java.rmi/sun.rmi.server
    32  *          java.rmi/sun.rmi.server
    33  *          java.rmi/sun.rmi.transport
    33  *          java.rmi/sun.rmi.transport
    34  *          java.rmi/sun.rmi.transport.tcp
    34  *          java.rmi/sun.rmi.transport.tcp
    35  * @build TestLibrary RMID ActivateMe RestartCrashedService_Stub
    35  *          java.base/sun.nio.ch
       
    36  * @build TestLibrary RMID RMIDSelectorProvider ActivateMe RestartCrashedService_Stub
    36  * @run main/othervm/policy=security.policy/timeout=240 RestartCrashedService
    37  * @run main/othervm/policy=security.policy/timeout=240 RestartCrashedService
    37  */
    38  */
    38 
    39 
    39 import java.io.*;
    40 import java.io.*;
    40 import java.rmi.*;
    41 import java.rmi.*;
   117         RMID rmid = null;
   118         RMID rmid = null;
   118         RestartCrashedService unicastObj = null;
   119         RestartCrashedService unicastObj = null;
   119 
   120 
   120         try {
   121         try {
   121             RMID.removeLog();
   122             RMID.removeLog();
   122             rmid = RMID.createRMID();
   123             rmid = RMID.createRMIDOnEphemeralPort();
   123             rmid.start();
   124             rmid.start();
   124 
   125 
   125             /* Cause activation groups to have a security policy that will
   126             /* Cause activation groups to have a security policy that will
   126              * allow security managers to be downloaded and installed
   127              * allow security managers to be downloaded and installed
   127              */
   128              */