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 4127754 26 * 27 * @summary synopsis: need to modify registered ActivationDesc and 28 * ActivationGroupDesc 29 * @author Ann Wollrath 30 * 31 * @library ../../../testlibrary 32 * @build TestLibrary RMID ActivationLibrary 33 * ActivateMe ModifyDescriptor_Stub 34 * @run main/othervm/policy=security.policy/timeout=240 ModifyDescriptor 35 */ 36 37 import java.io.*; 38 import java.rmi.*; 39 import java.rmi.activation.*; 40 import java.rmi.server.*; 41 import java.rmi.registry.*; 42 import java.util.*; 43 44 public class ModifyDescriptor 45 implements ActivateMe, Runnable 46 { 47 48 private ActivationID id; 49 private String message; 50 51 private static final String MESSAGE1 = "hello"; | 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 4127754 26 * 27 * @summary synopsis: need to modify registered ActivationDesc and 28 * ActivationGroupDesc 29 * @author Ann Wollrath 30 * 31 * @library ../../../testlibrary 32 * @modules java.rmi/sun.rmi.registry 33 * java.rmi/sun.rmi.server 34 * java.rmi/sun.rmi.transport 35 * java.rmi/sun.rmi.transport.tcp 36 * @build TestLibrary RMID ActivationLibrary 37 * ActivateMe ModifyDescriptor_Stub 38 * @run main/othervm/policy=security.policy/timeout=240 ModifyDescriptor 39 */ 40 41 import java.io.*; 42 import java.rmi.*; 43 import java.rmi.activation.*; 44 import java.rmi.server.*; 45 import java.rmi.registry.*; 46 import java.util.*; 47 48 public class ModifyDescriptor 49 implements ActivateMe, Runnable 50 { 51 52 private ActivationID id; 53 private String message; 54 55 private static final String MESSAGE1 = "hello"; |