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.<br><br>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.<br>
<br>You should read Henning and Vinoski's Advanced CORBA Programming with C++ for more details.<br><br><div class="gmail_quote">On Wed, Nov 26, 2008 at 7:42 AM, Carreira, Pedro (EXT-Other - PT/Amadora) <span dir="ltr"><<a href="mailto:pedro.carreira.ext@nsn.com">pedro.carreira.ext@nsn.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello again,<br>
<br>
Thanks for your answer. Now I can see that what I wanted to do won't be<br>
possible, at least not with the approach I was having.<br>
My problem is that I have one object that must be prioritary in order to<br>
the other ones. It must be highly available and be able to provide a<br>
fast reply.<br>
If I have this object in the same orb as the others then they will share<br>
the same resources (pool thread and queues) and my prioritary object<br>
won't have the behaviour I want because the other will flood the orb<br>
with requests. This is why I was trying to have two orbs on the same<br>
process.<br>
Do you know any other way to do this? Is it possible to define in<br>
omniOrb that one registered object is prioritary or is it possbile to<br>
have a separate thread pool for this object?<br>
<br>
Best regards,<br>
<font color="#888888">Pedro.<br>
</font><div><div></div><div class="Wj3C7c"><br>
-----Original Message-----<br>
From: <a href="mailto:omniorb-list-bounces@omniorb-support.com">omniorb-list-bounces@omniorb-support.com</a><br>
[mailto:<a href="mailto:omniorb-list-bounces@omniorb-support.com">omniorb-list-bounces@omniorb-support.com</a>] On Behalf Of ext<br>
Martin Trappel<br>
Sent: Tuesday, November 25, 2008 9:08 PM<br>
To: <a href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a><br>
Subject: Re: [omniORB] Two orbs only one registered.<br>
<br>
Carreira, Pedro (EXT-Other - PT/Amadora) wrote:<br>
> Hello,<br>
><br>
> I have the following scenario:<br>
> I have two orbs, but only one of them is registered in the naming<br>
> service. To make things easier I will call the orb registered in the<br>
> naming service the main orb and the other the secondary orb.<br>
> The objects instantiated in the main orb have some methods that<br>
returns<br>
> references to objects instantiated in the secondary orb.<br>
> Both orbs are created in the same process and I'm using OmiOrb 4.06<br>
> I just wanted to be sure that depending on the object called the orb<br>
> resources used are also different.<br>
> Do you see any problem with this scenario?<br>
> Thank you.<br>
><br>
<br>
I thought I knew omniORB only supports one ORB per process ... ??<br>
(Indeed, since I get the orb by CORBA::initORB() and that used to always<br>
<br>
return the same ORB I have a hard time seeing how it would be possible<br>
to have 2 omniORB ORBs per process ...)<br>
<br>
Do you mean POAs?<br>
<br>
br,<br>
Martin<br>
<br>
_______________________________________________<br>
omniORB-list mailing list<br>
<a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a><br>
<a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list" target="_blank">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><br>
<br>
_______________________________________________<br>
omniORB-list mailing list<br>
<a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a><br>
<a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list" target="_blank">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><br>
</div></div></blockquote></div><br>