Discussion:
Mico Client <-> JacOrb Server
Vázquez Landa, David
2008-09-25 13:09:57 UTC
Permalink
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
Karel Gardas
2008-09-25 13:52:39 UTC
Permalink
Hi,

if you are already using naming service for the application bootstrap,
than it would be silly not to use it from MICO too. Use standard
-ORBInitRef way to pass JacORB's NS IOR to MICO application.

Cheers,
Karel
Post by Vázquez Landa, David
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?
----------
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
_______________________________________________
Mico-devel mailing list
http://www.mico.org/mailman/listinfo/mico-devel
--
Karel Gardas ***@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com
Loading...