Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Using Sequence Numbers | Publisher Sequence Numbers | Maintaining Publish Sequence Number State
Maintaining Publish Sequence Number State
To make the most of publisher sequence numbers, publishing applications should store, in some reliable way, the sequence numbers of successfully transmitted events. This will allow them to continue publishing where they left off if they should terminate unexpectedly and need to be restarted.
Your application can use the BrokerClient.getLastPublishSequenceNumber method to determine the highest sequence number that it has used so far.
Your application can obtain the current setting on an event's sequence number by calling the BrokerEvent.getPublishSequenceNumber method.