Tuesday, January 04, 2005

SuspendedQListener Resumable Items

In order to ensure that both the suspended and suspended_resumable items events are raised through the SuspendedQListener the AddWatcher select statement must be changed to:


eventWatcher = new ManagementEventWatcher( new ManagementScope("root\\MicrosoftBizTalkServer"), new EventQuery("SELECT * FROM __InstanceCreationEvent WITHIN 5 WHERE TargetInstance ISA 'MSBTS_ServiceInstance' AND (TargetInstance.ServiceStatus = '4' OR TargetInstance.ServiceStatus = '32')"));

The ServiceSuspendedEventHandler and the startListening select statements must be changed to:


"SELECT * FROM MSBTS_MessageInstance WHERE ServiceInstanceStatus =" + (uint)ServiceInstanceStatus.Suspended_Not_Resumable + " or ServiceInstanceStatus = " + (uint)ServiceInstanceStatus.Suspended_Resumable;

Most of the time items are suspended with out being able to be resumed, but items will become resumable if the receive location is enabled, but the send port has been stopped.


No comments: