[omniORB] Two orbs only one registered.

Bruce Visscher bruce.visscher at gmail.com
Thu Nov 27 14:16:43 GMT 2008


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) <
pedro.carreira.ext at nsn.com> wrote:

> 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-bounces at omniorb-support.com
> [mailto:omniorb-list-bounces at omniorb-support.com] On Behalf Of ext
> Martin Trappel
> Sent: Tuesday, November 25, 2008 9:08 PM
> To: omniorb-list at omniorb-support.com
> Subject: Re: [omniORB] Two orbs only one registered.
>
> Carreira, Pedro (EXT-Other - PT/Amadora) wrote:
> > 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.
> >
>
> 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
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20081127/9240a5a6/attachment.htm


More information about the omniORB-list mailing list