For example, a user management system, we deploy one middleware block for companyA and another one for CompanyB. Now, i want to have a web client block(vaddin generic UI), user could select to connect companyA instance or B instance.
Is there a simplest way to achieve this? like change cuba.connectionUrlList dynamically by code?
StaticServerSelector bean defined in CUBA web module with
cuba_ServerSelector id, see cuba/web-spring.xml at 05615301bfdfa430f0d1e8b832262acde2481c77 · cuba-platform/cuba · GitHub
You can provide your own ServerSelector in your project, see for example how it is done in CUBA ZooKeeper integration add-on: cuba-zk/ZkServerSelector.java at master · cuba-platform/cuba-zk · GitHub