Reputation: 1268
In wso2 esb what is the best practice for Endpoint maintenance. From some article I got to know that we can read from file So, if this the best approach how achieve this one.
Upvotes: 0
Views: 355
Reputation: 549
In a scenario where the endpoint is saved as a file within the carbon registry (You can even upload the file via management console or can use WSO2 EI Tooling to create an endpoint template), we can read the content of the endpoint as follows.
Log the endpoint content using the following synapse configuration. (Can even retrieve specific attributes within the endpoint using their xpath expressions)
<log level="custom">
<property name="Endpoint Content:" expression="$ctx:endpointFile//*"/>
<property name="Endpoint URL:" expression="$ctx:endpointFile//*[local-name() = 'address'][1]/@uri"/>
</log>
You can see the logged endpoint content as below.
Upvotes: 3
Reputation: 2216
There are 3 ways to Endpoint Maintenance.
More details can be found in WSO2 Documentation.
Upvotes: 2