receiving flow events in JMS

alinaqvi
alinaqvi Member Posts: 35

We use FlowEventHandler to confirm if we are successfully subscribed to a queue.(We use these for Fault tolerance). Is there a way to get these events in JMS ?

 public class CustomFlowEventHandler implements FlowEventHandler {


public void handleEvent(Object o, FlowEventArgs flowEventArgs) {

    if(flowEventArgs.getEvent() == FlowEvent.FLOW_ACTIVE) {

        LOG.info("******Queue subscribed successfully *****");
        // Do stuff

    } else if(flowEventArgs.getEvent() == FlowEvent.FLOW_INACTIVE) {

         LOG.info("******Queue unsubscribed probably because of a network disconnect *****");
        // Do stuff

    } else {
        LOG.warn("***********Invalid Flow Event Received*********");
    }
}

}

Comments