< prev index next >

test/java/rmi/activation/rmidViaInheritedChannel/InheritedChannelNotServerSocket.java

Print this page




  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 6261402 6824141
  26  * @summary If rmid has an inherited channel that is not a server
  27  * socket (such as it if was started using rsh/rcmd), then it should
  28  * function normally.
  29  * @author Peter Jones
  30  *
  31  * @library ../../testlibrary





  32  * @build TestLibrary RMID ActivationLibrary
  33  * @run main/othervm/timeout=240 InheritedChannelNotServerSocket
  34  */
  35 
  36 import java.io.IOException;
  37 import java.net.Socket;
  38 import java.net.ProtocolFamily;
  39 import java.nio.channels.Channel;
  40 import java.nio.channels.DatagramChannel;
  41 import java.nio.channels.Pipe;
  42 import java.nio.channels.ServerSocketChannel;
  43 import java.nio.channels.SocketChannel;
  44 import java.nio.channels.spi.AbstractSelector;
  45 import java.nio.channels.spi.SelectorProvider;
  46 import java.rmi.NotBoundException;
  47 import java.rmi.Remote;
  48 import java.rmi.RemoteException;
  49 import java.rmi.activation.ActivationGroup;
  50 import java.rmi.activation.ActivationSystem;
  51 import java.rmi.registry.LocateRegistry;




  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 6261402 6824141
  26  * @summary If rmid has an inherited channel that is not a server
  27  * socket (such as it if was started using rsh/rcmd), then it should
  28  * function normally.
  29  * @author Peter Jones
  30  *
  31  * @library ../../testlibrary
  32  * @modules java.base/sun.nio.ch
  33  *          java.rmi/sun.rmi.registry
  34  *          java.rmi/sun.rmi.server
  35  *          java.rmi/sun.rmi.transport
  36  *          java.rmi/sun.rmi.transport.tcp
  37  * @build TestLibrary RMID ActivationLibrary
  38  * @run main/othervm/timeout=240 InheritedChannelNotServerSocket
  39  */
  40 
  41 import java.io.IOException;
  42 import java.net.Socket;
  43 import java.net.ProtocolFamily;
  44 import java.nio.channels.Channel;
  45 import java.nio.channels.DatagramChannel;
  46 import java.nio.channels.Pipe;
  47 import java.nio.channels.ServerSocketChannel;
  48 import java.nio.channels.SocketChannel;
  49 import java.nio.channels.spi.AbstractSelector;
  50 import java.nio.channels.spi.SelectorProvider;
  51 import java.rmi.NotBoundException;
  52 import java.rmi.Remote;
  53 import java.rmi.RemoteException;
  54 import java.rmi.activation.ActivationGroup;
  55 import java.rmi.activation.ActivationSystem;
  56 import java.rmi.registry.LocateRegistry;


< prev index next >