Solved

CORBA Event Service in C++

Posted on 2004-09-15
5
293 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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…

830 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