switch (msgType) {
case NOTIFY: {
try {
WsmgConfigurationContext brokerConfigContext = (WsmgConfigurationContext) inMsg
.getConfigurationContext().getProperty(WsmgCommonConstants.BROKER_WSMGCONFIG);
brokerConfigContext.getNotificationProcessor()
.processMsg(processingContext, NameSpaceConstants.WSNT_NS);
} catch (Exception e) {
throw new AxisFault("unable to process message", e);
}
outputMsg = createOutputMessageContext(inMsg, processingContext);
break;
}
case SUBSCRIBE: {
WsmgConfigurationContext brokerConfigContext = (WsmgConfigurationContext) inMsg.getConfigurationContext()
.getProperty(WsmgCommonConstants.BROKER_WSMGCONFIG);
brokerConfigContext.getSubscriptionManager().subscribe(processingContext);
outputMsg = createOutputMessageContext(inMsg, processingContext);
break;
}
case UNSUBSCRIBE: {
WsmgConfigurationContext brokerConfigContext = (WsmgConfigurationContext) inMsg.getConfigurationContext()
.getProperty(WsmgCommonConstants.BROKER_WSMGCONFIG);
brokerConfigContext.getSubscriptionManager().unsubscribe(processingContext);
outputMsg = createOutputMessageContext(inMsg, processingContext);
break;
}
case RESUME_SUBSCRIPTION: {
WsmgConfigurationContext brokerConfigContext = (WsmgConfigurationContext) inMsg.getConfigurationContext()
.getProperty(WsmgCommonConstants.BROKER_WSMGCONFIG);
brokerConfigContext.getSubscriptionManager().resumeSubscription(processingContext);
outputMsg = createOutputMessageContext(inMsg, processingContext);
break;
}
case PAUSE_SUBSCRIPTION: {
WsmgConfigurationContext brokerConfigContext = (WsmgConfigurationContext) inMsg.getConfigurationContext()
.getProperty(WsmgCommonConstants.BROKER_WSMGCONFIG);
brokerConfigContext.getSubscriptionManager().pauseSubscription(processingContext);
outputMsg = createOutputMessageContext(inMsg, processingContext);
break;
}
case GET_CURRENT_MSG:
default: