Solved

CORBA Event Service in C++

Posted on 2004-09-15
5
284 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

757 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

18 Experts available now in Live!

Get 1:1 Help Now