receiving flow events in JMS

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) {"******Queue subscribed successfully *****");
        // Do stuff

    } else if(flowEventArgs.getEvent() == FlowEvent.FLOW_INACTIVE) {
"******Queue unsubscribed probably because of a network disconnect *****");
        // Do stuff

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