Results 1 to 1 of 1
Thread: COM+ Event Handling (VB6 / COM+)
2003-04-28, 15:06 #1
- Join Date
- Nov 2001
- London, UK, England
- Thanked 0 Times in 0 Posts
COM+ Event Handling (VB6 / COM+)
I've created a COM+ application on a remote server that has a number of components. One of the components ('RangeDataServices') performs a number of data updates and when I first designed the object I included a number of Events...
Public Event RecordProcessed(RecordNumber As Long)
Public Event MaxValueSet(MaxValue As Long)
Public Event SetNewClientMessage(Message As String)
Public Event StageCompleted(CurrentStage As Integer)
My plan was to raise the events from the COM+ application back to the requesting client, but then I realised the whole 'Publisher' & 'Subscriber' mechanism of COM+ handles this. So, I created an event class that represents the 4 events as detailed above.
In my subscriber component 'RangeDataServices' I have referenced the event class & implemented the object. Also within the subscriber object I have replaced all RaiseEvent statements with 'objEvent' [The Event Class] and the relevant method with input parameters.
I've created the COM+ Application with RangeDataServices configured as a subscriber & the Event class....was hoping I would now be able to receive any events in the client application, but no!
I'm doing something wrong here I'm sure, but have got bogged down in the Microsoft documentation (which seems to go into great C++ low-level depths, but leaves the simple stuff!). Does anyone have any experience with COM+ Events or know of any sites that have good COM+ Event documentation or examples....?? Any help appreciated.