First, see the recent thread on using Vector instead of using multiple appendToDocumentList calls.
See if you can extract a node and add it to an object array and then convert that to a document list in a single nodeToDocument call.
When if your publish fails, either Broker or your network is down (or you’re attempting to publish data that doesn’t match the document’s structure).
You might use a repeat block to repeat on failure 2-3 times if the error is one that is deemed to be transient. If the repeat fails, then you could attempt to persist the doc list to disk for subsequent processing.
However, at some point, if your network or Broker is down, you might just want to fail the entire document.
HTH,
Mark
#Flow-and-Java-services#Integration-Server-and-ESB#webMethods