Two dbEntity manager?

Hello, is there a way to get two dbEntity managers, each for their own datasource? How to initialize em?

Is this what you look for? Process Engine Configuration | docs.camunda.org

Thanks for reply. Link provides just datasources. I am looking for a way to get two db entity managers…

If you have a datasource, can’t you then create a DbEntityManager based on it? BTW: What do you mean by DbEntityManager?

@Artem_Smirnov you can get DbEntityManager which is used by process engine can be retrieved like below:

DbEntityManager entityManager = Context.getCommandContext().getDbEntityManager();
1 Like