Solved

CORBA Event Service in C++

Posted on 2004-09-15
5
288 Views
Last Modified: 2008-03-06
Hello Experts,

I'm not sure this question is best posted here, but I couldn't find any topic related to CORBA...

Anyway, here is my question:

I'm currently develop an application using Iona's Orbix version 3.3.1 for C++ on a Unix machine.  I know Iona has newer and better version of Orbix, but I'm kind of stuck with this version of Orbix 3.3.1 for now.  By using one of the C++ example in the demos, I successfully created a PushSupplier and several push consumers by using Iona's Orbix Events Services.  The problem with this Event Services is that every time I do a broadcast for an event, if the first consumer in the list takes a long time to return to the push() method, then all the subsequent ones have to wait.  So my question is :  Is there anyway to setup some CORBA system option flag, or anything like that, for Event Services to bypass the slow consumer (for example in 1 second timeout), so that the next one can get the event without having to wait until all the previous ones return?

Thanks alot.
0
Comment
Question by:hoangohoango
5 Comments
 
LVL 3

Accepted Solution

by:
teratoma earned 63 total points
ID: 12072051
A CORBA scheduler shouldn't involve blocking the whole ORB while waiting for a consumer's response.  I'd tend to think this is some kind of demo behavior that doesn't happen in production mode.  For example, are you set up as a distributed system or is it just a single-machine demo?  I know nothing of Orbix so I can't say whether Iona owns the bug.
0
 
LVL 1

Assisted Solution

by:avinhpham
avinhpham earned 62 total points
ID: 12073260
Orbix Event Services 3.X uses a round-robin algorithm when broadcasting an event.  Therefore, each consumer is delivered the event in a round-robin system through the synchronous push() method.  If a consumer is slow in returning from the push() method, all other consumers will be affected.  OrbixNotification 2000 uses UDP broadcast with Quality of Services, which fixed this problem.

Since you are stuck with this old version of Orbix Event Services 3.X, there might be some options available for you to set the timeout flag for each broadcast.  Check out the following website for more information:
http://www.iona.com/support/knowledge_base/index.xml

avinhpham
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now