VisiBroker Server with client pure Java problem
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Haroldo_Nascimento
Posted On:   Friday, April 2, 2004 10:48 AM

I need of any help. My server CORBA was implements using VBroker of Borland. The need to be implement application Client using only Jdk 1.4. I compile the IDL using idlj of jdk and create the client application. The problem is that my application client recieve this error: "org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No" When I create other server using only JDK 1.4. The client works. For it I need start the tnameser application and the server application. My client get the reference of NameService and get the remote object. When I use the server (VBroker) I start the o   More>>

I need of any help.


My server CORBA was implements using VBroker of Borland.
The need to be implement application Client using only Jdk 1.4.



I compile the IDL using idlj of jdk and create the client application.



The problem is that my application client recieve this error:





"org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No"





When I create other server using only JDK 1.4. The client works. For it I need start the tnameser application and the server application. My client get the reference of NameService and get the remote object.



When I use the server (VBroker) I start the osagent application e after that the Server, but my client get the error:




"org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No"





My client is it:





props.put("org.omg.CORBA.ORBInitialHost", config.getProperty("SERVER_IP"));


props.put("org.omg.CORBA.ORBInitialPort", config.getProperty("PORTA"));


// Inicializando o ORB
orb = ORB.init(new String[1], props);



log.info("Obtendo referencia do NameService");



// Obtendo referencia do Objeto Name Service



obj = orb.resolve_initial_references("NameService");



namingContext = NamingContextHelper.narrow(obj);




name = new NameComponent[1];


name[0] = new NameComponent(config.getProperty("SERVICO"), "");





log.info("Obtendo referencia do serviço");



// Obtendo a referencia do serviço



obj = namingContext.resolve(name);



// Obtendo objeto remot


log.info("Narrow em Objeto remoto");



rec = recargaHelper.narrow(obj);






And my server is it:





java.util.Properties props = System.getProperties();



props.put("vbroker.agent.port", args[0]);



props.put("vbroker.agent.addr", args[1]);



System.setProperties ( props );






// Inicializando o ORB



org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init(args, props);


System.out.println(args[0]);


System.out.println(args[1]);



byte[] managerId = "ComponenteNegociosRecarga".getBytes();


recarga pPOA = recargaHelper.bind(orb, "/AtivaComponentesPOA", managerId);



System.out.println(pPOA.executaRecargaBanco("", "", "", "", "", "", 0.0, "", "", "", "", "", "", ""));

   <<Less
About | Sitemap | Contact