Vázquez Landa, David
2008-09-25 13:09:57 UTC
Hi, I'm trying to figure out how to get this working...
Right now I'm stuck because I don't know how should I make the two implementations communicate. I'm running a JacOrb name service with a filename, just as in the tutorial. The URL for the filename (the one I'd be using from Mico, I guess) is "file:/c:/gurito/public/jacorb/NS_Ref". Now, I don't know where should I specify that for Mico to find it. And furthermore, supposing that's already taken care of, how would I access an object served by JacOrb?
This is the relevant part of my server:
----------
POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
poa.the_POAManager().activate();
org.omg.CORBA.Object o = poa.servant_to_reference(new FinderI());
// Register with the naming service
NamingContextExt nc = NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));
nc.bind(nc.to_name("Finder"), o);
----------
Thanks in advance :)
David
Right now I'm stuck because I don't know how should I make the two implementations communicate. I'm running a JacOrb name service with a filename, just as in the tutorial. The URL for the filename (the one I'd be using from Mico, I guess) is "file:/c:/gurito/public/jacorb/NS_Ref". Now, I don't know where should I specify that for Mico to find it. And furthermore, supposing that's already taken care of, how would I access an object served by JacOrb?
This is the relevant part of my server:
----------
POA poa = POAHelper.narrow(orb.resolve_initial_references("RootPOA"));
poa.the_POAManager().activate();
org.omg.CORBA.Object o = poa.servant_to_reference(new FinderI());
// Register with the naming service
NamingContextExt nc = NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));
nc.bind(nc.to_name("Finder"), o);
----------
Thanks in advance :)
David