34 Implementing WebSphere BI Express for Item Synchronization
can be delivered asynchronously or synchronously and can be signed and
encrypted using the same technologies that are available for sending documents.
The status of a document, including several statistics, can be generated by the
P2PAgent in the form of a notice. Again, this notice can be a message in a queue
or a file in a named directory. Any errors can be reported in a daily log file.
Alternatively, an error for a given document can result in an error file or message
specifically tied to that document. The error document can contain, for example,
HTTP error codes. The P2PAgent can also be configured to try to send a
document several times, for example three times at an interval of one minute. If
the agent has tried to send a document the maximum allowed number of times,
the document can be stored in a separate location: a given directory or queue.
This feature is sometimes referred to as the
recycle feature. The message or file
contains nothing but the original document, while the error itself is stored in the
error message or file. The advantage of this separation is that the recycled
document can be used without any alteration in a back-up transmission system,
such as a VAN.
4.3 Administration features
Configuring and managing a P2PAgent configuration can be done in a variety of
ways. The simplest form is to use the interactive session when the agent is
started. The agent runs in a command window and commands can be entered at
the prompt.
Example 4-1 shows the console view of the P2PAgent. After start-up, the user
has executed the status command for which you can see the output in the lower
part of the example. This output also shows us what different options can be
configured and tuned. We will introduce and use some of them throughout this
redbook. For a complete reference, please consult the product documentation.
Example 4-1 Agent startup
:\iSoft_Advanced>p2pagent_odbc_ibm_unlimited.exe
iSoft(R) Peer-to-Peer Agent(TM) for MQSeries(R)
(C) Copyright 2001-2002 iSoft Corp.
Build: 3.1.2002.10.30.1 [Nov 27 2002 15:06:36]
IBM Unlimited Edition
Authorized License
2003.02.05 15:30:09.521 POPT OK Error path set to [error]
2003.02.05 15:30:09.521 POPT OK Inbound errant will be stored
2003.02.05 15:30:09.531 POPT OK Log path set to [log]
2003.02.05 15:30:09.531 POPT OK Trace set to WRITE_FILE
2003.02.05 15:30:09.541 POPT OK Notice path set to [mq://FMCQM/notices]
2003.02.05 15:30:09.541 POPT OK Notices will be written to file