Iterator<AxisOperation> operations = service.getOperations();
while (operations.hasNext())
{
AxisOperation op = (AxisOperation) operations.next();
SandeshaPolicyBean propertyBean =
SandeshaUtil.getPropertyBean(op);
// Indicate that the sequence should timeout after 1 second
// And that it should be deleted after 2 seconds
if (propertyBean != null) {
propertyBean.setInactiveTimeoutInterval(1, "seconds");
propertyBean.setSequenceRemovalTimeoutInterval(2, "seconds");
}
}
// Set a bad acks to so the CreateSequence will be refused.
String acksTo = AddressingConstants.Final.WSA_NONE_URI;