use of org.apache.cxf.management.annotation.ManagedOperation in project cxf by apache.
the class ManagedRMEndpoint method closeSourceSequence.
@ManagedOperation(description = "Close Source Sequence")
@ManagedOperationParameters({ @ManagedOperationParameter(name = "sequenceId", description = "The sequence identifier") })
public void closeSourceSequence(String sid) throws JMException {
SourceSequence ss = getSourceSeq(sid);
if (null == ss) {
throw new JMException("no source sequence");
}
RetransmissionQueue rq = endpoint.getManager().getRetransmissionQueue();
rq.stop(ss);
Proxy proxy = endpoint.getProxy();
try {
proxy.lastMessage(ss);
} catch (RMException e) {
e.printStackTrace();
throw new JMException("Error closing sequence: " + e.getMessage());
}
}
Aggregations