Discussion:
AW: [omniORB] corbaloc and trading service
Fischer, Clemens
2007-02-21 16:15:49 UTC
Permalink
Hi,
here's a short example of how to use omniINSPOA:

...
CORBA::ORB_var orb = CORBA::ORB_init(argc, argv);

CORBA::Object_var obj = orb->resolve_initial_references("omniINSPOA");
PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);

PortableServer::POAManager_var poa_man = poa->the_POAManager();
poa_man->activate();

PortableServer::ObjectId_var oid =
PortableServer::string_to_ObjectId("MyObjectKey");

MyInterfaceImpl* servant = new MyInterfaceImpl;

poa->activate_object_with_id(oid, servant);
...


Start your server with -ORBendPoint ::host:port and
ORB::string_to_object("corbaloc::host:port/MyObjectKey") will succeed.

---
Clemens



-----Urspr?ngliche Nachricht-----
Von: omniorb-list-***@omniorb-support.com [mailto:omniorb-list-***@omniorb-support.com] Im Auftrag von ***@schneider.com
Gesendet: Dienstag, 20. Februar 2007 22:45
An: omniorb-***@omniorb-support.com
Betreff: Re: [omniORB] corbaloc and trading service

See the section 6.5 in the user guide.

http://omniorb.sourceforge.net/omni41/omniORB/omniORB006.html#toc34

You need to use the omniINSPOA for the initial reference.

---
Kendall Bailey
Engineering & Research
Schneider National, Inc.




Jeffrey Coffman
<***@yahoo
.com> To
Sent by: omniorb-***@omniorb-support.com
omniorb-list-boun cc
***@omniorb-suppo
rt.com Subject
[omniORB] corbaloc and trading
service
02/20/2007 03:30
PM


Please respond to
***@yahoo.
com






Hello,

I'm working on an implementation of trading service using omniorb. I'm at
the point where i want to start-up my trading service and use the corbaloc
mechanism in the omniorb config file to resolve the initial reference.

I've never used corbaloc before this before so I'm hoping someone can give
me some pointers.

I assume that if I want to use the corbaloc for my trading service I can
set the orb end point when i start my service up to be whatever port I
choose to listen to. I'm a little confused on the object key, is there a
way to start my server so that it uses the same object key every time? I
know some other orbs allow you to pass a key parameter to them, how do i go
about doing this using omniorb.

Thanks,

Jeff Coffman_______________________________________________

Loading...