package testRMI;

import java.rmi.RemoteException;

public class Server {

	public static void main(String[] args) {
		// Create the remote object:
		SecondImpl remoteObj = null;
		try {
			remoteObj = new SecondImpl();
		} catch (RemoteException e) {
			e.printStackTrace();
		}
		ExportChannel ec = new ExportChannel(remoteObj);
		ec.export();
	}
}