Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Using Sequence Numbers | Publisher Sequence Numbers | Using Publisher Sequence Numbers
Using Publisher Sequence Numbers
When the Broker receives an event with a sequence number that has not been set or is set to zero, it assumes that event sequence numbering rules are not to be applied to the event. If your application does not want to use publish sequence numbers, it simply should not set them or set them to zero.
Your application can set a non-zero publish sequence number for an event by calling theBrokerEvent.setPublishSequenceNumber prior to publishing or delivering the event. The BrokerClient.deliverAckReplyEvent and BrokerClient.deliverNullReplyEvent methods allow you to specify a publish sequence number directly.
When the event is published or delivered, the Broker will discard the event if the sequence number is less than or equal to the highest sequence number received from that Broker client so far.
To ensure that events are not discarded, publishing applications should use increasing sequence numbers. The sequence number values, however, can be incremented by a value greater than one.