[omniORB] Corbaloc example?
Wernke zur Borg
wzb at anitesystems.de
Fri Sep 24 08:37:22 BST 2004
Hi Craig,
the ominINSPOA has both USER_ID and PERSISTENT policy, so it should be ideal
for your purpose (as it is for mine).
By the way, I am using the omniINSPOA as my root POA, which also works fine.
You don't have to activate all objects with a user defined id; you can use
the normal activation as well. In my case it is just a bootstrap root object
that is accessed with a corbaloc URI; all other objects are created
dynamically.
Regards, Wernke
-----Original Message-----
From: Burton, Craig [mailto:CBurton at verisign.com]
Sent: 23 September 2004 17:42
To: 'Wernke zur Borg'
Cc: omniorb-list at omniorb-support.com
Subject: RE: [omniORB] Corbaloc example?
Hi Wernke,
Thank you for the reply. It seems the part I'm missing is your comment
regarding omniINSPOA. I have never done that.
In this particular case, I'm attempting to create a child poa using
perisistent lifespan policy so that my IOR is static. Would this preclude
using omniINSPOA?
Thanks again,
Craig
-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Wernke zur
Borg
Sent: Wednesday, September 22, 2004 11:31 PM
To: omniorb-list at omniorb-support.com
Subject: RE: [omniORB] Corbaloc example?
(Sorry, my previous mail prematurely went off by mistake)
Hi Craig,
first refer to chapter 6.5 of the manual, Creating objects with simple
object keys.
Basically, you first decide on the object key, e.g. "MyObjectKey", then use
PortableServer::string_to_ObjectId() and the omniINSPOA with
activate_object_with_id() on the server side.
On the client side, you use
string_to_object("corbaloc::myhost:port/MyObjectKey"). No need to catior.
Hope this is what you were looking for.
Wernke
-----Original Message-----
From: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of Burton, Craig
Sent: 22 September 2004 21:12
To: omniorb-list at omniorb-support.com
Subject: [omniORB] Corbaloc example?
Hi,
Our group has been using persistent IORs and corbaname (with omniNames) for
quite some time with great success. However, we now have the need to look
into "corbaloc". I've tried several things to no avail.
What I'm trying to do is use catior to get the object key that I'm using to
populate the corbaloc string, then calling string_to_object. But I must be
missing something pretty obvious. If anyone could offer a quick example, I
would be grateful.
Thanks in advance,
Craig
cburton at verisign.com
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
_______________________________________________
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