
上QQ阅读APP看书,第一时间看更新
The send mediator
The send mediator is used to make a non-blocking request to a backend with the current payload. The backend is configured with the endpoints that can have implicit, inline, named, or store in the registry. When the send mediator is used in the out sequence, it will perform a response to the client.
This is the implicit send syntax:
<send/>
The following is the endpoint send syntax:
<send [receive="string"]> (endpointref | endpoint)+ </send>
Here, keep the following things in mind: endpointref is a named or registry endpoint. endpoint is an anonymous endpoint defined inline, receive is the sequence that processes the backend response.
For example, consider send with inline definition (endpoint type):
<send> <endpoint> <address uri="http://localhost:8280/services"/> </endpoint> </send>
Now, consider send with a named endpoint (endpointref type):
<send receive="OutSequence">
<endpoint key="CreditEpr"/>
</send>