jdk/test/java/rmi/activation/ActivateFailedException/activateFails/ShutdownThread.java
changeset 309 bda219d843f6
parent 2 90ce3da70b43
child 715 f16baef3a20e
equal deleted inserted replaced
308:33a1639d64a5 309:bda219d843f6
     1 /* 
     1 /*
     2  * Copyright 2001 Sun Microsystems, Inc.  All Rights Reserved.
     2  * Copyright 2001 Sun Microsystems, Inc.  All Rights Reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
    29 
    29 
    30     Remote remoteObject = null;
    30     Remote remoteObject = null;
    31     ActivationID activationID = null;
    31     ActivationID activationID = null;
    32 
    32 
    33     public ShutdownThread(Remote remoteObject, ActivationID activationID) {
    33     public ShutdownThread(Remote remoteObject, ActivationID activationID) {
    34 	remoteObject = remoteObject;
    34         remoteObject = remoteObject;
    35 	activationID = activationID;
    35         activationID = activationID;
    36     }
    36     }
    37 
    37 
    38     public void run() {
    38     public void run() {
    39 
    39 
    40 	try {
    40         try {
    41 
    41 
    42 	    Activatable.unexportObject(remoteObject, true);
    42             Activatable.unexportObject(remoteObject, true);
    43 	    Activatable.inactive(activationID);
    43             Activatable.inactive(activationID);
    44 
    44 
    45 	} catch (Exception e) {
    45         } catch (Exception e) {
    46 	}
    46         }
    47 
    47 
    48     }
    48     }
    49 
    49 
    50 }
    50 }
    51