/*
* Created on 27-sep-2006
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package nl.ica.ddoa.example.rmi.timtom;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;
/**
* @author Rody
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class TomServer {
public static void main(String[] args) {
try {
IntfTom tommetje = new Tom();
Naming.rebind("rmi://localhost:1099/Tom", tommetje);
} catch (RemoteException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}