Indirect and Resolving endpoints are endpoint configurations with a key which refers to an existing endpoint.
Indirect Endpoint
The Indirect Endpoint refers to an actual endpoint by a key. This endpoint fetches the actual endpoint at runtime. Then it delegates the message sending to the actual endpoint. When endpoints are stored in the registry and referred, this endpoint can be used. The key
is a static value for this endpoint.
...
XML Configuration
Code Block | ||
---|---|---|
| ||
<endpoint key="" name="" />
|
Example
In the following Send mediator configuration, the PersonInfoEpr
key refers to a specific endpoint saved in the registry.
Code Block | ||
---|---|---|
| ||
<send> <endpoint key="PersonInfoEpr"/> </send> |
Resolving Endpoint
The Resolving Endpoint refers to an actual endpoint using a dynamic key. The key is an XPath expression.
...
When endpoints are stored in the registry and referred, this endpoint can be used.
...
Info |
---|
The XPath expression specified in a Resolving endpoint configuration derives an existing endpoint rather than the URL of the endpoint to which the message is sent. To derive the endpoint URL to which the message is sent via an XPath expression, use the Header Mediator. |
XML Configuration
Code Block | ||
---|---|---|
| ||
<endpoint name="" key-expression="" /> | ||
Info | ||
|
Example
In the following Send mediator configuration, the endpoint to which the message is sent is determined by the get-property('Mail')
expression.
Code Block | ||
---|---|---|
| ||
<send>
<endpoint key-expression="get-property('Mail')"/>
</send> |
Excerpt | ||
---|---|---|
| ||
Description of the Indirect and the Resolving Endpoints in WSO2 ESB. |