Best way to write a component to que objects
Posted on 2001-07-10
I am starting to design a component which will send SMS messages. The way I would like to design this is to have a component that created a que that contains objects. Each object should be independant once it is created, sending the initial message then receiving status messages about the message. It should also destroy itself when the message has reached it's destination or when a timeout has expired. Each time an event occurs within a que object (e.g. message timed out, message sent successfully etc.), the parent component should be informed and should fire an Event.
I have some ideas about how to do this, but am a little confused as to how I pass the messages status back to the parent component.
Any ideas will be gratefully received along with 300 points to the best suggestion :) Examples would be nice too...