jacksphere
jacksphere

Reputation: 31

Can We change an Endpoint in Wso2Esb dynamically

while we implementing proxy services we can define endpoint. It was working in local system we need to change the Production Environment or deployment or testing .In this Case I need to change my endpoint Address if My Wso2dss server in another machine that time local host not working so.i need overcome this .you have any reference for this which will set every endpoint as property whenever i need to change Environment no need set a Con fig file if change in property it will reflect every where

Upvotes: 0

Views: 1153

Answers (2)

Ratha
Ratha

Reputation: 9692

The only way is, to use Header mediator to set "To" address dynamically. You can use Header mediator to set "To" addressing header and after that use the "Default" endpoint to send the request. Message will be send to the address, which is set by the "To" header. To set value, in Header mediator dynamically , you can use xpath, where you can pick a predefined property or do an xpath evaluation for the incoming request to pick the value.

Upvotes: 1

Shelan Perera
Shelan Perera

Reputation: 1753

You can use dynamic endpoints.So you store your endpoints in your registry and refer them. Please refer this sample.

Upvotes: 0

Related Questions