I've searched through the forum but cannot find a thread relating to my question.
I have a SBB which receives a call. While it is processing the call logic I want the SBB to fire an event (let's say an HTTP request), and then immediately continue executing the service logic. It doesn't matter what the response is to the fired events request as it's a best effort type message, so the logic doesn't need to pick up on any response. Could anyone suggest a way I could fire (and forget) an event during the execution of a SBB?
Any help, tips, nudges in the right direction would be appreciated!
Joined: 27/03/2008 13:43:16
Location: Cambridge, UK
Any fire event method in an SBB will do what you want.
Fire event methods are inherently asynchronous - the event is only actually fired if and when the SBB event handler transaction commits - and the SBB will only receive any response, if there is one, sometime later if the SBB has an event handler for the response event and the SBB is attached to the activity context of the activity that the response event is fired on, or has flagged the response event as an initial event. If the SBB doesn't fulfil these conditions it won't see the response, so in your case you just have to make sure that these conditions are not fulfilled.