Dynamic Routing in OSB
In this post we will see how to use OSB dynamic routing feature to Route Request to different proxy/business service at run time. To demonstrate how Dynamic Routing works, we will first create two proxy service with Mocked response indicating which proxy service got called. We will have customer creation service, which creates the customer either in CRMOD or OCH based on the parameter passed in request. There will be 3 proxy services: 1. OCH proxy service : a. URI : /proxy/ ochCreateCustomer This proxy will return the mocked response i.e. “customer created in OCH” 2. CRMOD proxy service: a. URI : /proxy/ crmodCreateCustomer This proxy will return the mocked response i.e. “customer created in CRMOD” 3. Create Customer Orchestration service: a. URI: /proxy/ createCustomer This p...