Support of multiple EMF models in Theia frontend and backend

Hello All,

We are migrating our existing emf models to emf cloud in Theia application. However, there are couple of below open questions with respective to implementation.

Referring coffee editor example for model server where it has a single model server which runs on default port 8081 and using default model server client.

Additionally I need to create another feature which does have another model(let’s say Employee model) apart from coffee model.

I am able to implement the same with below solution.
At backend: I have implemented another modelserver product which is very similar to existing model server and configured with 8082 port number.
At frontend: I have implemented custom modelserver client extension which is very similar to existing default model server client(i.e. DefaultModelServerClient) and configured with 8082 port number.

Open questions:

  1. Can one model server backend product handle multiple models?
  2. Is there any better to support multiple model servers apart from creating a multiple products running on different ports?
  3. In case of multiple model server products, is there any restriction or recommendation on using specific port number for other model servers apart from 8081.

Any inputs on above is highly appreciated. Thanks in advance!!


would you mind posting your question to the forum: Discussions · eclipse-emfcloud/emfcloud · GitHub can be used within Theia, but it is an indepedan framework / Project.

Best regards,

Thanks. I have posted and pasting the link below.