Is that possible one web client block connecting 2 different middleware block?

Hi team,

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?

thank you


There is StaticServerSelector bean defined in CUBA web module with cuba_ServerSelector id, see

You can provide your own ServerSelector in your project, see for example how it is done in CUBA ZooKeeper integration add-on: