Performs the initiation role of a message exchange (i.e sender of the first message; analogous to the client in a client-server interaction), according to HL7's original mode processing rules.
The sendAndReceive(...)
method blocks until either a response is received with the matching message ID, or until a timeout period has passed. The timeout defaults to 10000 ms (10 sec) but can be configured by setting the system property "ca.uhn.hl7v2.app.initiator.timeout" to an integer value representing the number of ms after which to time out.
At the time of writing, enhanced mode, two-phase reply, continuation messages, and batch processing are unsupported.
@author Bryan TrippThis class represents an initiator, which request messages to a target defined by the iSCSI Protocol (RFC3720). @author Volker Wildi, University of Konstanz @author Sebastian Graf, University of Konstanz
<?init class="MyInit"?>
Once specified, an instance is created and {@link #doInit} is calledbefore the page is evaluated. Then, {@link #doAfterCompose} is calledafter all components are created, and before any event is processed. In additions, {@link #doFinally} is calledafter the page has been evaluated. If an exception occurs, {@link #doCatch}is called.
A typical usage: starting a transaction in doInit, rolling back it in {@link #doCatch} and commit it in {@link #doFinally}(if {@link #doCatch} is not called). @author tomyeh @see InitiatorExt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|