All pastes #270915 Raw Edit

Untitled

public text v1 · immutable
·published 2006-12-07 23:49 UTC
rendered paste body
//Inicializar o processo de registo no nameService...
	org.omg.CORBA.Object nsObj=null;
	
	try {
		nsObj = orb.resolve_initial_references("NameService");
		} catch (org.omg.CORBA.ORBPackage.InvalidName e2) {
			// TODO Auto-generated catch block
				e2.printStackTrace();
		}
	
			
	NamingContext nc = null; 
	nc = NamingContextHelper.narrow(nsObj);
	
	 
	 //Criar o contexto para... 	
	 NameComponent[] futebolsaContext = new NameComponent[1];
	 futebolsaContext[0] = new NameComponent("PSD003","");
	 	 
	 //admin e...
	 NameComponent adminPath[] = new NameComponent[2];
	 adminPath[0] = futebolsaContext[0];
	 adminPath[1] = new NameComponent("AdminServer","");
			
	 //clubes...
	 NameComponent clubesPath[] = new NameComponent[2];
	 clubesPath[0] = futebolsaContext[0];
	 clubesPath[1] = new NameComponent("Clubes","");
	
	 NamingContext futebolsaDNS = null;