AW: [omniORB] corbaloc and trading service
Fischer, Clemens
clemens.fischer at atlas.de
Wed Feb 21 11:15:12 GMT 2007
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-bounces at omniorb-support.com [mailto:omniorb-list-bounces at omniorb-support.com] Im Auftrag von BaileyK at schneider.com
Gesendet: Dienstag, 20. Februar 2007 22:45
An: omniorb-list at 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
<jcoffman98 at yahoo
.com> To
Sent by: omniorb-list at omniorb-support.com
omniorb-list-boun cc
ces at omniorb-suppo
rt.com Subject
[omniORB] corbaloc and trading
service
02/20/2007 03:30
PM
Please respond to
jcoffman98 at 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_______________________________________________
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
More information about the omniORB-list
mailing list