de.tu_darmstadt.sp.example
Class RMIClient

java.lang.Object
  |
  +--de.tu_darmstadt.sp.example.RMIClient

public class RMIClient
extends java.lang.Object

Class RMIClient sends a messaga to a RMI server.

Version:
$Revision: 1.4 $
Author:
Andrei Popovici

Constructor Summary
RMIClient()
           
 
Method Summary
static void main(java.lang.String[] args)
          Send a message to a RMIServer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RMIClient

public RMIClient()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Send a message to a RMIServer. The program expects the ca file, cert, and key file to be specified via System properties or environment variables.

This information is needed to create and istall a RMISecureSocketFactory. After the call, the connection information (peer,cryptographic information, etc. is displayed).

The command expects two arguments, server-name and message. The sever bound to the given name at the local naming service will be sent a message.

 rmiserver server-name message