Discussion:
[omniORB] Two orbs only one registered.
Carreira, Pedro (EXT-Other - PT/Amadora)
2008-11-26 01:28:18 UTC
Permalink
Hello,

I have the following scenario:
I have two orbs, but only one of them is registered in the naming
service. To make things easier I will call the orb registered in the
naming service the main orb and the other the secondary orb.
The objects instantiated in the main orb have some methods that returns
references to objects instantiated in the secondary orb.
Both orbs are created in the same process and I'm using OmiOrb 4.06
I just wanted to be sure that depending on the object called the orb
resources used are also different.
Do you see any problem with this scenario?
Thank you.

Best regards,
Pedro.
Martin Trappel
2008-11-26 03:08:54 UTC
Permalink
Post by Carreira, Pedro (EXT-Other - PT/Amadora)
Hello,
I have two orbs, but only one of them is registered in the naming
service. To make things easier I will call the orb registered in the
naming service the main orb and the other the secondary orb.
The objects instantiated in the main orb have some methods that returns
references to objects instantiated in the secondary orb.
Both orbs are created in the same process and I'm using OmiOrb 4.06
I just wanted to be sure that depending on the object called the orb
resources used are also different.
Do you see any problem with this scenario?
Thank you.
I thought I knew omniORB only supports one ORB per process ... ??
(Indeed, since I get the orb by CORBA::initORB() and that used to always
return the same ORB I have a hard time seeing how it would be possible
to have 2 omniORB ORBs per process ...)

Do you mean POAs?

br,
Martin
Carreira, Pedro (EXT-Other - PT/Amadora)
2008-11-26 18:48:00 UTC
Permalink
Hello again,

Thanks for your answer. Now I can see that what I wanted to do won't be
possible, at least not with the approach I was having.
My problem is that I have one object that must be prioritary in order to
the other ones. It must be highly available and be able to provide a
fast reply.
If I have this object in the same orb as the others then they will share
the same resources (pool thread and queues) and my prioritary object
won't have the behaviour I want because the other will flood the orb
with requests. This is why I was trying to have two orbs on the same
process.
Do you know any other way to do this? Is it possible to define in
omniOrb that one registered object is prioritary or is it possbile to
have a separate thread pool for this object?

Best regards,
Pedro.

-----Original Message-----
From: omniorb-list-***@omniorb-support.com
[mailto:omniorb-list-***@omniorb-support.com] On Behalf Of ext
Martin Trappel
Sent: Tuesday, November 25, 2008 9:08 PM
To: omniorb-***@omniorb-support.com
Subject: Re: [omniORB] Two orbs only one registered.
Post by Carreira, Pedro (EXT-Other - PT/Amadora)
Hello,
I have two orbs, but only one of them is registered in the naming
service. To make things easier I will call the orb registered in the
naming service the main orb and the other the secondary orb.
The objects instantiated in the main orb have some methods that
returns
Post by Carreira, Pedro (EXT-Other - PT/Amadora)
references to objects instantiated in the secondary orb.
Both orbs are created in the same process and I'm using OmiOrb 4.06
I just wanted to be sure that depending on the object called the orb
resources used are also different.
Do you see any problem with this scenario?
Thank you.
I thought I knew omniORB only supports one ORB per process ... ??
(Indeed, since I get the orb by CORBA::initORB() and that used to always

return the same ORB I have a hard time seeing how it would be possible
to have 2 omniORB ORBs per process ...)

Do you mean POAs?

br,
Martin
Bruce Visscher
2008-11-28 01:16:46 UTC
Permalink
While you cannot have more than one orb per process you can certainly have
more than one POA. I think this might be what you are looking for.

On the other hand, keep in mind the threads that handle dispatching requests
via POAs are not necessarily the only ones to consider. You will likely
create other threads and you can control the scheduling policy and priority
of those threads.

You should read Henning and Vinoski's Advanced CORBA Programming with C++
for more details.

On Wed, Nov 26, 2008 at 7:42 AM, Carreira, Pedro (EXT-Other - PT/Amadora) <
Post by Carreira, Pedro (EXT-Other - PT/Amadora)
Hello again,
Thanks for your answer. Now I can see that what I wanted to do won't be
possible, at least not with the approach I was having.
My problem is that I have one object that must be prioritary in order to
the other ones. It must be highly available and be able to provide a
fast reply.
If I have this object in the same orb as the others then they will share
the same resources (pool thread and queues) and my prioritary object
won't have the behaviour I want because the other will flood the orb
with requests. This is why I was trying to have two orbs on the same
process.
Do you know any other way to do this? Is it possible to define in
omniOrb that one registered object is prioritary or is it possbile to
have a separate thread pool for this object?
Best regards,
Pedro.
-----Original Message-----
Martin Trappel
Sent: Tuesday, November 25, 2008 9:08 PM
Subject: Re: [omniORB] Two orbs only one registered.
Post by Carreira, Pedro (EXT-Other - PT/Amadora)
Hello,
I have two orbs, but only one of them is registered in the naming
service. To make things easier I will call the orb registered in the
naming service the main orb and the other the secondary orb.
The objects instantiated in the main orb have some methods that
returns
Post by Carreira, Pedro (EXT-Other - PT/Amadora)
references to objects instantiated in the secondary orb.
Both orbs are created in the same process and I'm using OmiOrb 4.06
I just wanted to be sure that depending on the object called the orb
resources used are also different.
Do you see any problem with this scenario?
Thank you.
I thought I knew omniORB only supports one ORB per process ... ??
(Indeed, since I get the orb by CORBA::initORB() and that used to always
return the same ORB I have a hard time seeing how it would be possible
to have 2 omniORB ORBs per process ...)
Do you mean POAs?
br,
Martin
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20081127/9240a5a6/attachment.htm
Loading...