Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.rmi.*;
- public class AplicacaoServidora{
- public static void main(String argv[]){
- HelloServidora objetoServidor;
- try{
- objetoServidor = new HelloServidora();
- Naming.rebind("//localhost/ObjetoServidor",objetoServidor);
- System.out.println("ObjetoServidor esta ativo!");
- }
- catch(RemoteException re){
- System.out.println("Erro Remoto: "+re.toString());
- }
- catch(Exception e){
- System.out.println("Erro Local: "+e.toString());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment