OnRamp for Commerce One MarketSite 3.5 SP1 | webMethods OnRamp for Commerce One MarketSite Adapter Documentation | webMethods OnRamp for CommerceOne MarketSite Adapter Installation and User’s Documentation | Using the Partner Manager | Using the Message Store | Viewing the Message Store | Purging All Transactions from the Message Store | Purging All Transactions from the Message Store Periodically
 
Purging All Transactions from the Message Store Periodically
*To purge all transactions from the message store periodically
1. In Designer, create a flow service that invokes the wm.PartnerMgr.xtn.Sweeper:sweepTRX service.
2. Pass the following parameters to the sweepTRX service.
For this parameter...
Specify
onState
The transaction state
elapsedTime
The number of minutes that the transaction has been in onState
maxTrxCount
The maximum number of transactions to delete each time that sweepTRX is invoked
When the sweepTRX service is invoked, the System finalizer is invoked and the garbage collector is invoked.
3. Schedule the flow service to run periodically to purge the message store.
Example
If you want to periodically purge all transactions which have been in the Confirmed state for longer than 30 minutes, you can create a service called purgeConfirmedTRX with those state and time parameters. You also specify how many transactions every invocation of the service will purge. This is so you can control the pace of your maintenance jobs without increasing the amount of overhead processing.
The following procedure deletes all transactions manually from the message store. Use this procedure only to delete a small number of documents. Otherwise, server performance can degrade substantially.